Function useConstantsRegistry
- useConstantsRegistry(contractAddress: string, provider: Provider, rawProvider: RawProvider): {
addConstant: ((key: string, value: BytesLike) => Promise<TransactionResponse>);
removeConstant: ((key: string) => Promise<TransactionResponse>);
}
-
Parameters
-
contractAddress: string
-
provider: Provider
-
rawProvider: RawProvider
Returns {
addConstant: ((key: string, value: BytesLike) => Promise<TransactionResponse>);
removeConstant: ((key: string) => Promise<TransactionResponse>);
}
-
addConstant: ((key: string, value: BytesLike) => Promise<TransactionResponse>)
-
- (key: string, value: BytesLike): Promise<TransactionResponse>
-
Parameters
-
key: string
-
value: BytesLike
Returns Promise<TransactionResponse>
-
removeConstant: ((key: string) => Promise<TransactionResponse>)
-
- (key: string): Promise<TransactionResponse>
-
Returns Promise<TransactionResponse>