Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Statistics

Eric edited this page Dec 9, 2018 · 10 revisions

Here are the gas costs for relevant methods in the contracts. The __callback here is the Oraclize query's callback.

Note: Some functions store mapping from user address to data. Calling these functions the first time will create the necessary mapping. After the initial mapping creation, calling the functions again with same address usually takes lower gas, which will be indicated inside brackets here.

UserInfo.sol

  • deployment: 1526k
  • createUser: 47.1k
  • buyInsurance: 98.8k (68.8k)
  • claimInsurance: 69.3k (54.6k)
  • claimPayouts: 19.1k

FlightValidity.sol

  • deployment: 3468k
  • __callback: 209.9k
  • checkFlightDetails: 242.8k (175k)

ConversionRate.sol

  • deployment: 1400k
  • __callback: 49.7k
  • updateConversionToSGD: 79.8k
Clone this wiki locally