@celo/contractkit"wrappers/BlockchainParameters"BlockchainParametersWrapper

Class: BlockchainParametersWrapper

Network parameters that are configurable by governance.

Hierarchy

BlockchainParametersWrapper

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

+ new BlockchainParametersWrapper(kit: ContractKit, contract: BlockchainParameters): BlockchainParametersWrapper

Inherited from BaseWrapper.constructor

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

Parameters:

Name Type
kit ContractKit
contract BlockchainParameters

Returns: BlockchainParametersWrapper

Properties

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: BlockchainParameters["events"] = this.contract.events

Inherited from BaseWrapper.events

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


getBlockGasLimit

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

Defined in packages/sdk/contractkit/src/wrappers/BlockchainParameters.ts:41

Getting the block gas limit.

Type declaration:

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

Parameters:

Name Type
...args InputArgs

getIntrinsicGasForAlternativeFeeCurrency

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

Defined in packages/sdk/contractkit/src/wrappers/BlockchainParameters.ts:24

Get the extra intrinsic gas for transactions, where gas is paid using non-gold currency.

Type declaration:

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

Parameters:

Name Type
...args InputArgs

getUptimeLookbackWindow

getUptimeLookbackWindow: function = proxyCall( this.contract.methods.getUptimeLookbackWindow, undefined, valueToInt )

Defined in packages/sdk/contractkit/src/wrappers/BlockchainParameters.ts:79

Getting the uptime lookback window.

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


setBlockGasLimit

setBlockGasLimit: function = proxySend(this.kit, this.contract.methods.setBlockGasLimit)

Defined in packages/sdk/contractkit/src/wrappers/BlockchainParameters.ts:46

Setting the block gas limit.

Type declaration:

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

Parameters:

Name Type
...args InputArgs

setIntrinsicGasForAlternativeFeeCurrency

setIntrinsicGasForAlternativeFeeCurrency: function = proxySend( this.kit, this.contract.methods.setIntrinsicGasForAlternativeFeeCurrency )

Defined in packages/sdk/contractkit/src/wrappers/BlockchainParameters.ts:33

Setting the extra intrinsic gas for transactions, where gas is paid using non-gold currency.

Type declaration:

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

Parameters:

Name Type
...args InputArgs

setMinimumClientVersion

setMinimumClientVersion: function = proxySend(this.kit, this.contract.methods.setMinimumClientVersion)

Defined in packages/sdk/contractkit/src/wrappers/BlockchainParameters.ts:63

Set minimum client version.

Type declaration:

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

Parameters:

Name Type
...args InputArgs

setUptimeLookbackWindow

setUptimeLookbackWindow: function = proxySend(this.kit, this.contract.methods.setUptimeLookbackWindow)

Defined in packages/sdk/contractkit/src/wrappers/BlockchainParameters.ts:87

Setting the uptime lookback window.

Type declaration:

▸ (...args: InputArgs): CeloTransactionObject‹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‹BlockchainParametersConfig

Defined in packages/sdk/contractkit/src/wrappers/BlockchainParameters.ts:68

Returns current configuration parameters.

Returns: Promise‹BlockchainParametersConfig


getMinimumClientVersion

getMinimumClientVersion(): Promise‹ClientVersion

Defined in packages/sdk/contractkit/src/wrappers/BlockchainParameters.ts:51

Get minimum client version.

Returns: Promise‹ClientVersion


getPastEvents

getPastEvents(event: Events‹BlockchainParameters›, 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‹BlockchainParameters›
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››