UNPKG

wowok

Version:

Wowok Blockchain TypeScript API

580 lines (579 loc) 32.7 kB
export declare const TransactionEffects: import("./index.js").BcsEnum<{ V1: import("./index.js").BcsStruct<{ status: import("./index.js").BcsEnum<{ Success: any; Failed: import("./index.js").BcsStruct<{ error: import("./index.js").BcsEnum<{ InsufficientGas: any; InvalidGasObject: any; InvariantViolation: any; FeatureNotYetSupported: any; MoveObjectTooBig: import("./index.js").BcsStruct<{ objectSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; maxObjectSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; MovePackageTooBig: import("./index.js").BcsStruct<{ objectSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; maxObjectSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; CircularObjectOwnership: import("./index.js").BcsStruct<{ object: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; }, string>; InsufficientCoinBalance: any; CoinBalanceOverflow: any; PublishErrorNonZeroAddress: any; WowMoveVerificationError: any; MovePrimitiveRuntimeError: import("./index.js").BcsType<{ module: { address: string; name: string; }; function: number; instruction: number; functionName: string; }, { module: { address: string | Uint8Array<ArrayBufferLike>; name: string; }; function: number; instruction: number; functionName: string; }, `Option<${string}>`>; MoveAbort: import("./index.js").BcsTuple<readonly [import("./index.js").BcsStruct<{ module: import("./index.js").BcsStruct<{ address: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; name: import("./index.js").BcsType<string, string, "string">; }, string>; function: import("./index.js").BcsType<number, number, "u16">; instruction: import("./index.js").BcsType<number, number, "u16">; functionName: import("./index.js").BcsType<string, string, "Option<string>">; }, string>, import("./index.js").BcsType<string, string | number | bigint, "u64">], string>; VMVerificationOrDeserializationError: any; VMInvariantViolation: any; FunctionNotFound: any; ArityMismatch: any; TypeArityMismatch: any; NonEntryFunctionInvoked: any; CommandArgumentError: import("./index.js").BcsStruct<{ argIdx: import("./index.js").BcsType<number, number, "u16">; kind: import("./index.js").BcsEnum<{ TypeMismatch: any; InvalidBCSBytes: any; InvalidUsageOfPureArg: any; InvalidArgumentToPrivateEntryFunction: any; IndexOutOfBounds: import("./index.js").BcsStruct<{ idx: import("./index.js").BcsType<number, number, "u16">; }, string>; SecondaryIndexOutOfBounds: import("./index.js").BcsStruct<{ resultIdx: import("./index.js").BcsType<number, number, "u16">; secondaryIdx: import("./index.js").BcsType<number, number, "u16">; }, string>; InvalidResultArity: import("./index.js").BcsStruct<{ resultIdx: import("./index.js").BcsType<number, number, "u16">; }, string>; InvalidGasCoinUsage: any; InvalidValueUsage: any; InvalidObjectByValue: any; InvalidObjectByMutRef: any; SharedObjectOperationNotAllowed: any; }, "CommandArgumentError">; }, string>; TypeArgumentError: import("./index.js").BcsStruct<{ argumentIdx: import("./index.js").BcsType<number, number, "u16">; kind: import("./index.js").BcsEnum<{ TypeNotFound: any; ConstraintNotSatisfied: any; }, "TypeArgumentError">; }, string>; UnusedValueWithoutDrop: import("./index.js").BcsStruct<{ resultIdx: import("./index.js").BcsType<number, number, "u16">; secondaryIdx: import("./index.js").BcsType<number, number, "u16">; }, string>; InvalidPublicFunctionReturnType: import("./index.js").BcsStruct<{ idx: import("./index.js").BcsType<number, number, "u16">; }, string>; InvalidTransferObject: any; EffectsTooLarge: import("./index.js").BcsStruct<{ currentSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; maxSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; PublishUpgradeMissingDependency: any; PublishUpgradeDependencyDowngrade: any; PackageUpgradeError: import("./index.js").BcsStruct<{ upgradeError: import("./index.js").BcsEnum<{ UnableToFetchPackage: import("./index.js").BcsStruct<{ packageId: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; }, string>; NotAPackage: import("./index.js").BcsStruct<{ objectId: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; }, string>; IncompatibleUpgrade: any; DigestDoesNotMatch: import("./index.js").BcsStruct<{ digest: import("./index.js").BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>, "vector<u8>">; }, string>; UnknownUpgradePolicy: import("./index.js").BcsStruct<{ policy: import("./index.js").BcsType<number, number, "u8">; }, string>; PackageIDDoesNotMatch: import("./index.js").BcsStruct<{ packageId: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; ticketId: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; }, string>; }, "PackageUpgradeError">; }, string>; WrittenObjectsTooLarge: import("./index.js").BcsStruct<{ currentSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; maxSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; CertificateDenied: any; WowMoveVerificationTimedout: any; SharedObjectOperationNotAllowed: any; InputObjectDeleted: any; ExecutionCancelledDueToSharedObjectCongestion: import("./index.js").BcsStruct<{ congestedObjects: import("./index.js").BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & { length: number; }, string>; }, string>; AddressDeniedForCoin: import("./index.js").BcsStruct<{ address: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; coinType: import("./index.js").BcsType<string, string, "string">; }, string>; CoinTypeGlobalPause: import("./index.js").BcsStruct<{ coinType: import("./index.js").BcsType<string, string, "string">; }, string>; ExecutionCancelledDueToRandomnessUnavailable: any; }, "ExecutionFailureStatus">; command: import("./index.js").BcsType<string, string | number | bigint, "Option<u64>">; }, string>; }, "ExecutionStatus">; executedEpoch: import("./index.js").BcsType<string, string | number | bigint, "u64">; gasUsed: import("./index.js").BcsStruct<{ computationCost: import("./index.js").BcsType<string, string | number | bigint, "u64">; storageCost: import("./index.js").BcsType<string, string | number | bigint, "u64">; storageRebate: import("./index.js").BcsType<string, string | number | bigint, "u64">; nonRefundableStorageFee: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; modifiedAtVersions: import("./index.js").BcsType<[string, string][], Iterable<readonly [string | Uint8Array<ArrayBufferLike>, string | number | bigint]> & { length: number; }, string>; sharedObjects: import("./index.js").BcsType<{ objectId: string; version: string; digest: string; }[], Iterable<{ objectId: string | Uint8Array<ArrayBufferLike>; version: string | number | bigint; digest: string; }> & { length: number; }, string>; transactionDigest: import("./index.js").BcsType<string, string, "ObjectDigest">; created: import("./index.js").BcsType<[{ objectId: string; version: string; digest: string; }, import("../_deps/bcs/types.js").EnumOutputShapeWithKeys<{ AddressOwner: string; ObjectOwner: string; Shared: { initialSharedVersion: string; }; Immutable: unknown; ConsensusAddressOwner: { owner: string; startVersion: string; }; }, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">][], Iterable<readonly [{ objectId: string | Uint8Array<ArrayBufferLike>; version: string | number | bigint; digest: string; }, import("../_deps/bcs/types.js").EnumInputShape<{ AddressOwner: string | Uint8Array<ArrayBufferLike>; ObjectOwner: string | Uint8Array<ArrayBufferLike>; Shared: { initialSharedVersion: string | number | bigint; }; Immutable: unknown; ConsensusAddressOwner: { owner: string | Uint8Array<ArrayBufferLike>; startVersion: string | number | bigint; }; }>]> & { length: number; }, string>; mutated: import("./index.js").BcsType<[{ objectId: string; version: string; digest: string; }, import("../_deps/bcs/types.js").EnumOutputShapeWithKeys<{ AddressOwner: string; ObjectOwner: string; Shared: { initialSharedVersion: string; }; Immutable: unknown; ConsensusAddressOwner: { owner: string; startVersion: string; }; }, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">][], Iterable<readonly [{ objectId: string | Uint8Array<ArrayBufferLike>; version: string | number | bigint; digest: string; }, import("../_deps/bcs/types.js").EnumInputShape<{ AddressOwner: string | Uint8Array<ArrayBufferLike>; ObjectOwner: string | Uint8Array<ArrayBufferLike>; Shared: { initialSharedVersion: string | number | bigint; }; Immutable: unknown; ConsensusAddressOwner: { owner: string | Uint8Array<ArrayBufferLike>; startVersion: string | number | bigint; }; }>]> & { length: number; }, string>; unwrapped: import("./index.js").BcsType<[{ objectId: string; version: string; digest: string; }, import("../_deps/bcs/types.js").EnumOutputShapeWithKeys<{ AddressOwner: string; ObjectOwner: string; Shared: { initialSharedVersion: string; }; Immutable: unknown; ConsensusAddressOwner: { owner: string; startVersion: string; }; }, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">][], Iterable<readonly [{ objectId: string | Uint8Array<ArrayBufferLike>; version: string | number | bigint; digest: string; }, import("../_deps/bcs/types.js").EnumInputShape<{ AddressOwner: string | Uint8Array<ArrayBufferLike>; ObjectOwner: string | Uint8Array<ArrayBufferLike>; Shared: { initialSharedVersion: string | number | bigint; }; Immutable: unknown; ConsensusAddressOwner: { owner: string | Uint8Array<ArrayBufferLike>; startVersion: string | number | bigint; }; }>]> & { length: number; }, string>; deleted: import("./index.js").BcsType<{ objectId: string; version: string; digest: string; }[], Iterable<{ objectId: string | Uint8Array<ArrayBufferLike>; version: string | number | bigint; digest: string; }> & { length: number; }, string>; unwrappedThenDeleted: import("./index.js").BcsType<{ objectId: string; version: string; digest: string; }[], Iterable<{ objectId: string | Uint8Array<ArrayBufferLike>; version: string | number | bigint; digest: string; }> & { length: number; }, string>; wrapped: import("./index.js").BcsType<{ objectId: string; version: string; digest: string; }[], Iterable<{ objectId: string | Uint8Array<ArrayBufferLike>; version: string | number | bigint; digest: string; }> & { length: number; }, string>; gasObject: import("./index.js").BcsTuple<readonly [import("./index.js").BcsStruct<{ objectId: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; version: import("./index.js").BcsType<string, string | number | bigint, "u64">; digest: import("./index.js").BcsType<string, string, "ObjectDigest">; }, string>, import("./index.js").BcsEnum<{ AddressOwner: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; ObjectOwner: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; Shared: import("./index.js").BcsStruct<{ initialSharedVersion: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; Immutable: any; ConsensusAddressOwner: import("./index.js").BcsStruct<{ owner: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; startVersion: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; }, "Owner">], string>; eventsDigest: import("./index.js").BcsType<string, string, "Option<ObjectDigest>">; dependencies: import("./index.js").BcsType<string[], Iterable<string> & { length: number; }, string>; }, string>; V2: import("./index.js").BcsStruct<{ status: import("./index.js").BcsEnum<{ Success: any; Failed: import("./index.js").BcsStruct<{ error: import("./index.js").BcsEnum<{ InsufficientGas: any; InvalidGasObject: any; InvariantViolation: any; FeatureNotYetSupported: any; MoveObjectTooBig: import("./index.js").BcsStruct<{ objectSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; maxObjectSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; MovePackageTooBig: import("./index.js").BcsStruct<{ objectSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; maxObjectSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; CircularObjectOwnership: import("./index.js").BcsStruct<{ object: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; }, string>; InsufficientCoinBalance: any; CoinBalanceOverflow: any; PublishErrorNonZeroAddress: any; WowMoveVerificationError: any; MovePrimitiveRuntimeError: import("./index.js").BcsType<{ module: { address: string; name: string; }; function: number; instruction: number; functionName: string; }, { module: { address: string | Uint8Array<ArrayBufferLike>; name: string; }; function: number; instruction: number; functionName: string; }, `Option<${string}>`>; MoveAbort: import("./index.js").BcsTuple<readonly [import("./index.js").BcsStruct<{ module: import("./index.js").BcsStruct<{ address: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; name: import("./index.js").BcsType<string, string, "string">; }, string>; function: import("./index.js").BcsType<number, number, "u16">; instruction: import("./index.js").BcsType<number, number, "u16">; functionName: import("./index.js").BcsType<string, string, "Option<string>">; }, string>, import("./index.js").BcsType<string, string | number | bigint, "u64">], string>; VMVerificationOrDeserializationError: any; VMInvariantViolation: any; FunctionNotFound: any; ArityMismatch: any; TypeArityMismatch: any; NonEntryFunctionInvoked: any; CommandArgumentError: import("./index.js").BcsStruct<{ argIdx: import("./index.js").BcsType<number, number, "u16">; kind: import("./index.js").BcsEnum<{ TypeMismatch: any; InvalidBCSBytes: any; InvalidUsageOfPureArg: any; InvalidArgumentToPrivateEntryFunction: any; IndexOutOfBounds: import("./index.js").BcsStruct<{ idx: import("./index.js").BcsType<number, number, "u16">; }, string>; SecondaryIndexOutOfBounds: import("./index.js").BcsStruct<{ resultIdx: import("./index.js").BcsType<number, number, "u16">; secondaryIdx: import("./index.js").BcsType<number, number, "u16">; }, string>; InvalidResultArity: import("./index.js").BcsStruct<{ resultIdx: import("./index.js").BcsType<number, number, "u16">; }, string>; InvalidGasCoinUsage: any; InvalidValueUsage: any; InvalidObjectByValue: any; InvalidObjectByMutRef: any; SharedObjectOperationNotAllowed: any; }, "CommandArgumentError">; }, string>; TypeArgumentError: import("./index.js").BcsStruct<{ argumentIdx: import("./index.js").BcsType<number, number, "u16">; kind: import("./index.js").BcsEnum<{ TypeNotFound: any; ConstraintNotSatisfied: any; }, "TypeArgumentError">; }, string>; UnusedValueWithoutDrop: import("./index.js").BcsStruct<{ resultIdx: import("./index.js").BcsType<number, number, "u16">; secondaryIdx: import("./index.js").BcsType<number, number, "u16">; }, string>; InvalidPublicFunctionReturnType: import("./index.js").BcsStruct<{ idx: import("./index.js").BcsType<number, number, "u16">; }, string>; InvalidTransferObject: any; EffectsTooLarge: import("./index.js").BcsStruct<{ currentSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; maxSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; PublishUpgradeMissingDependency: any; PublishUpgradeDependencyDowngrade: any; PackageUpgradeError: import("./index.js").BcsStruct<{ upgradeError: import("./index.js").BcsEnum<{ UnableToFetchPackage: import("./index.js").BcsStruct<{ packageId: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; }, string>; NotAPackage: import("./index.js").BcsStruct<{ objectId: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; }, string>; IncompatibleUpgrade: any; DigestDoesNotMatch: import("./index.js").BcsStruct<{ digest: import("./index.js").BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>, "vector<u8>">; }, string>; UnknownUpgradePolicy: import("./index.js").BcsStruct<{ policy: import("./index.js").BcsType<number, number, "u8">; }, string>; PackageIDDoesNotMatch: import("./index.js").BcsStruct<{ packageId: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; ticketId: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; }, string>; }, "PackageUpgradeError">; }, string>; WrittenObjectsTooLarge: import("./index.js").BcsStruct<{ currentSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; maxSize: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; CertificateDenied: any; WowMoveVerificationTimedout: any; SharedObjectOperationNotAllowed: any; InputObjectDeleted: any; ExecutionCancelledDueToSharedObjectCongestion: import("./index.js").BcsStruct<{ congestedObjects: import("./index.js").BcsType<string[], Iterable<string | Uint8Array<ArrayBufferLike>> & { length: number; }, string>; }, string>; AddressDeniedForCoin: import("./index.js").BcsStruct<{ address: import("./index.js").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">; coinType: import("./index.js").BcsType<string, string, "string">; }, string>; CoinTypeGlobalPause: import("./index.js").BcsStruct<{ coinType: import("./index.js").BcsType<string, string, "string">; }, string>; ExecutionCancelledDueToRandomnessUnavailable: any; }, "ExecutionFailureStatus">; command: import("./index.js").BcsType<string, string | number | bigint, "Option<u64>">; }, string>; }, "ExecutionStatus">; executedEpoch: import("./index.js").BcsType<string, string | number | bigint, "u64">; gasUsed: import("./index.js").BcsStruct<{ computationCost: import("./index.js").BcsType<string, string | number | bigint, "u64">; storageCost: import("./index.js").BcsType<string, string | number | bigint, "u64">; storageRebate: import("./index.js").BcsType<string, string | number | bigint, "u64">; nonRefundableStorageFee: import("./index.js").BcsType<string, string | number | bigint, "u64">; }, string>; transactionDigest: import("./index.js").BcsType<string, string, "ObjectDigest">; gasObjectIndex: import("./index.js").BcsType<number, number, "Option<u32>">; eventsDigest: import("./index.js").BcsType<string, string, "Option<ObjectDigest>">; dependencies: import("./index.js").BcsType<string[], Iterable<string> & { length: number; }, string>; lamportVersion: import("./index.js").BcsType<string, string | number | bigint, "u64">; changedObjects: import("./index.js").BcsType<[string, { inputState: import("../_deps/bcs/types.js").EnumOutputShapeWithKeys<{ NotExist: unknown; Exist: [[string, string], import("../_deps/bcs/types.js").EnumOutputShapeWithKeys<{ AddressOwner: string; ObjectOwner: string; Shared: { initialSharedVersion: string; }; Immutable: unknown; ConsensusAddressOwner: { owner: string; startVersion: string; }; }, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">]; }, "NotExist" | "Exist">; outputState: import("../_deps/bcs/types.js").EnumOutputShapeWithKeys<{ NotExist: unknown; ObjectWrite: [string, import("../_deps/bcs/types.js").EnumOutputShapeWithKeys<{ AddressOwner: string; ObjectOwner: string; Shared: { initialSharedVersion: string; }; Immutable: unknown; ConsensusAddressOwner: { owner: string; startVersion: string; }; }, "AddressOwner" | "ObjectOwner" | "Shared" | "Immutable" | "ConsensusAddressOwner">]; PackageWrite: [string, string]; }, "NotExist" | "ObjectWrite" | "PackageWrite">; idOperation: import("../_deps/bcs/types.js").EnumOutputShapeWithKeys<{ None: unknown; Created: unknown; Deleted: unknown; }, "None" | "Created" | "Deleted">; }][], Iterable<readonly [string | Uint8Array<ArrayBufferLike>, { inputState: import("../_deps/bcs/types.js").EnumInputShape<{ NotExist: unknown; Exist: readonly [readonly [string | number | bigint, string], import("../_deps/bcs/types.js").EnumInputShape<{ AddressOwner: string | Uint8Array<ArrayBufferLike>; ObjectOwner: string | Uint8Array<ArrayBufferLike>; Shared: { initialSharedVersion: string | number | bigint; }; Immutable: unknown; ConsensusAddressOwner: { owner: string | Uint8Array<ArrayBufferLike>; startVersion: string | number | bigint; }; }>]; }>; outputState: import("../_deps/bcs/types.js").EnumInputShape<{ NotExist: unknown; ObjectWrite: readonly [string, import("../_deps/bcs/types.js").EnumInputShape<{ AddressOwner: string | Uint8Array<ArrayBufferLike>; ObjectOwner: string | Uint8Array<ArrayBufferLike>; Shared: { initialSharedVersion: string | number | bigint; }; Immutable: unknown; ConsensusAddressOwner: { owner: string | Uint8Array<ArrayBufferLike>; startVersion: string | number | bigint; }; }>]; PackageWrite: readonly [string | number | bigint, string]; }>; idOperation: import("../_deps/bcs/types.js").EnumInputShape<{ None: unknown; Created: unknown; Deleted: unknown; }>; }]> & { length: number; }, string>; unchangedSharedObjects: import("./index.js").BcsType<[string, import("../_deps/bcs/types.js").EnumOutputShapeWithKeys<{ ReadOnlyRoot: [string, string]; MutateDeleted: string; ReadDeleted: string; Cancelled: string; PerEpochConfig: unknown; }, "ReadOnlyRoot" | "MutateDeleted" | "ReadDeleted" | "Cancelled" | "PerEpochConfig">][], Iterable<readonly [string | Uint8Array<ArrayBufferLike>, import("../_deps/bcs/types.js").EnumInputShape<{ ReadOnlyRoot: readonly [string | number | bigint, string]; MutateDeleted: string | number | bigint; ReadDeleted: string | number | bigint; Cancelled: string | number | bigint; PerEpochConfig: unknown; }>]> & { length: number; }, string>; auxDataDigest: import("./index.js").BcsType<string, string, "Option<ObjectDigest>">; }, string>; }, "TransactionEffects">;