Module

x/polkadot/mod.ts>apiContract.Abi

Package publishing for deno.land/x/polkadot
Go to Latest
class apiContract.Abi
import { apiContract } from "https://dotland.deno.dev/x/polkadot@0.2.35/mod.ts";
const { Abi } = apiContract;

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

decodeConstructor(data: Uint8Array): DecodedMessage

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
import apiContract.Abi
import { apiContract } from "https://dotland.deno.dev/x/polkadot@0.2.35/mod.ts";
const { Abi } = apiContract;