Skip to main content

Advances, Systems and Applications

Table 2 The gas consumption and access control mechanisms of function interfaces in AWESOME smart contracts

From: AWESOME: an auction and witness enhanced SLA model for decentralized cloud marketplaces

Smart Contract

Access Control

Function Interface

Gas Consumption

Transaction Fee (Ether)

    

Low

Average

High

Auction Contract

Customer

Setup Auction

63694

0.002101902

0.002420372

0.002675148

 

Provider

Bidder Register

55835

0.001842555

0.00212173

0.00234507

 

Customer

Check Bidder Number

32420

0.00106986

0.00123196

0.00136164

 

Provider

Submit Bid

54555

0.001800315

0.00207309

0.00229131

 

Provider

Reveal Bid

76605

0.002527965

0.00291099

0.00321741

 

Customer

Reveal Reserve Price

29630

0.00097779

0.00112594

0.00124446

 

Customer

Place Bids

1552698

0.051239034

0.059002524

0.065213316

 

Customer & Provider

Withdraw Deposit

22242

0.000733986

0.000845196

0.000934164

Witness Contract

Witness

Witness Register

63630

0.00209979

0.00241794

0.00267246

 

Customer

Check Auction Settled

47298

0.001560834

0.001797324

0.001986516

 

Witness

Submit Reports

28159

0.000929247

0.001070042

0.001182678

 

Witness

Reveal Reports

60330

0.00199089

0.00229254

0.00253386

 

Customer

Calculate Witness Fee

817390

0.02697387

0.03106082

0.03433038

 

Witness

Withdraw Witness Fee

24017

0.000792561

0.000912646

0.001008714

SLA Contract

Provider

Publish Service

34587

0.001141371

0.001314306

0.001452654

 

Provider

Setup SLA

55275

0.001824075

0.00210045

0.00232155

 

Customer

Accept SLA

26721

0.000881793

0.001015398

0.001122282

 

Provider

Cancel SLA

31926

0.001053558

0.001213188

0.001340892

 

Provider

Check SLA Violation

169151

0.005581983

0.006427738

0.007104342

 

Customer & Provider

Withdraw Service Fee

36785

0.001213905

0.00139783

0.00154497