@celo/contractkit"wrappers/GasPriceMinimum"GasPriceMinimumWrapper

Class: GasPriceMinimumWrapper

Stores the gas price minimum

Hierarchy

GasPriceMinimumWrapper

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

+ new GasPriceMinimumWrapper(kit: ContractKit, contract: GasPriceMinimum): GasPriceMinimumWrapper

Inherited from BaseWrapper.constructor

Defined in packages/sdk/contractkit/src/wrappers/BaseWrapper.ts:30

Parameters:

Name Type
kit ContractKit
contract GasPriceMinimum

Returns: GasPriceMinimumWrapper

Properties

adjustmentSpeed

adjustmentSpeed: function = proxyCall( this.contract.methods.adjustmentSpeed, undefined, fixidityValueToBigNumber )

Defined in packages/sdk/contractkit/src/wrappers/GasPriceMinimum.ts:44

Query adjustment speed parameter

returns multiplier that impacts how quickly gas price minimum is adjusted.

Type declaration:

▸ (...args: InputArgs): Promise‹Output›

Parameters:

Name Type
...args InputArgs

eventTypes

eventTypes: EventsEnum‹T› = Object.keys(this.events).reduce>( (acc, key) => ({ ...acc, [key]: key }), {} as any )

Inherited from BaseWrapper.eventTypes

Defined in packages/sdk/contractkit/src/wrappers/BaseWrapper.ts:61


events

events: GasPriceMinimum["events"] = this.contract.events

Inherited from BaseWrapper.events

Defined in packages/sdk/contractkit/src/wrappers/BaseWrapper.ts:59


gasPriceMinimum

gasPriceMinimum: function = proxyCall(this.contract.methods.gasPriceMinimum, undefined, valueToBigNumber)

Defined in packages/sdk/contractkit/src/wrappers/GasPriceMinimum.ts:19

Query current gas price minimum in CELO.

returns current gas price minimum in CELO

Type declaration:

▸ (...args: InputArgs): Promise‹Output›

Parameters:

Name Type
...args InputArgs

getGasPriceMinimum

getGasPriceMinimum: function = proxyCall( this.contract.methods.getGasPriceMinimum, undefined, valueToBigNumber )

Defined in packages/sdk/contractkit/src/wrappers/GasPriceMinimum.ts:25

Query current gas price minimum.

returns current gas price minimum in the requested currency

Type declaration:

▸ (...args: InputArgs): Promise‹Output›

Parameters:

Name Type
...args InputArgs

methodIds

methodIds: Record‹keyof T["methods"], string› = Object.keys(this.contract.methods).reduce, string>>( (acc, method: Methods) => { const methodABI = this.contract.options.jsonInterface.find((item) => item.name === method)

  acc[method] =
    methodABI === undefined
      ? '0x'
      : this.kit.connection.getAbiCoder().encodeFunctionSignature(methodABI)

  return acc
},
{} as any

)

Inherited from BaseWrapper.methodIds

Defined in packages/sdk/contractkit/src/wrappers/BaseWrapper.ts:66


targetDensity

targetDensity: function = proxyCall( this.contract.methods.targetDensity, undefined, fixidityValueToBigNumber )

Defined in packages/sdk/contractkit/src/wrappers/GasPriceMinimum.ts:35

Query target density parameter.

returns the current block density targeted by the gas price minimum algorithm.

Type declaration:

▸ (...args: InputArgs): Promise‹Output›

Parameters:

Name Type
...args InputArgs

Accessors

address

get address(): string

Inherited from BaseWrapper.address

Defined in packages/sdk/contractkit/src/wrappers/BaseWrapper.ts:35

Contract address

Returns: string

Methods

getConfig

getConfig(): Promise‹GasPriceMinimumConfig

Defined in packages/sdk/contractkit/src/wrappers/GasPriceMinimum.ts:52

Returns current configuration parameters.

Returns: Promise‹GasPriceMinimumConfig


getPastEvents

getPastEvents(event: Events‹GasPriceMinimum›, options: PastEventOptions): Promise‹EventLog[]›

Inherited from BaseWrapper.getPastEvents

Defined in packages/sdk/contractkit/src/wrappers/BaseWrapper.ts:55

Contract getPastEvents

Parameters:

Name Type
event Events‹GasPriceMinimum›
options PastEventOptions

Returns: Promise‹EventLog[]›


version

version(): Promise‹NonNullable‹T["methods"] extends object ? ContractVersion<> : never››

Inherited from BaseWrapper.version

Defined in packages/sdk/contractkit/src/wrappers/BaseWrapper.ts:39

Returns: Promise‹NonNullable‹T["methods"] extends object ? ContractVersion<> : never››