Module

x/polkadot/api-contract/Abi/index.ts>Abi

Package publishing for deno.land/x/polkadot
Go to Latest
class Abi
import { Abi } from "https://dotland.deno.dev/x/polkadot@0.2.23/api-contract/Abi/index.ts";

Constructors

new
Abi(abiJson: Record<string, unknown> | string, chainProperties?: ChainProperties)

Properties

readonly
constructors: AbiConstructor[]
readonly
events: AbiEvent[]
readonly
info: ContractProjectInfo
readonly
json: Record<string, unknown>
readonly
messages: AbiMessage[]
readonly
metadata: ContractMetadataLatest
readonly
registry: Registry

Methods

Warning: Unstable API, bound to change

decodeEvent(data: Bytes | Uint8Array): DecodedEvent

Warning: Unstable API, bound to change

decodeMessage(data: Uint8Array): DecodedMessage

Warning: Unstable API, bound to change

findConstructor(constructorOrId: AbiConstructor | string | number): AbiConstructor
findMessage(messageOrId: AbiMessage | string | number): AbiMessage