/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ /* Generated types for 0x2, original address 0x2 */ import { TypeDescriptor, ANY_TYPE } from "@typemove/move"; import { MoveCoder, TypedEventInstance } from "@typemove/sui"; import { defaultMoveCoder } from "@sentio/sdk/sui"; import { ZERO_ADDRESS, TypedSimulateResults, getMoveCoder, } from "@typemove/sui"; import { Transaction, TransactionArgument, TransactionObjectArgument, } from "@mysten/sui/transactions"; import { SuiGrpcClient } from "@mysten/sui/grpc"; import { transactionArgumentOrObject, transactionArgumentOrVec, transactionArgumentOrPure, transactionArgumentOrPureU8, transactionArgumentOrPureU16, transactionArgumentOrPureU32, transactionArgumentOrPureU64, transactionArgumentOrPureU128, transactionArgumentOrPureU256, transactionArgumentOrPureBool, transactionArgumentOrPureString, transactionArgumentOrPureAddress, } from "@typemove/sui"; import { CallFilter, MoveFetchConfig, EventFilter } from "@sentio/sdk/move"; import { HandlerOptions } from "@sentio/sdk"; import { SuiBindOptions, SuiBaseProcessor, SuiNetwork, TypedFunctionPayload, SuiContext, } from "@sentio/sdk/sui"; import * as _0x1 from "./0x1.js"; export class accumulator extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("accumulator", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): accumulator { return new accumulator({ ...accumulator.DEFAULT_OPTIONS, ...options }); } onEventKey( func: (event: accumulator.KeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): accumulator { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "accumulator::Key" }, handlerOptions, ); return this; } } export namespace accumulator { export interface AccumulatorRoot { id: object$.UID; } export namespace AccumulatorRoot { export const TYPE_QNAME = "0x2::accumulator::AccumulatorRoot"; const TYPE = new TypeDescriptor( AccumulatorRoot.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface Key { address: string; } export namespace Key { export const TYPE_QNAME = "0x2::accumulator::Key"; const TYPE = new TypeDescriptor>(Key.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type KeyInstance = TypedEventInstance> & { data_decoded: Key; type_arguments: [string]; }; export interface U128 { value: bigint; } export namespace U128 { export const TYPE_QNAME = "0x2::accumulator::U128"; const TYPE = new TypeDescriptor(U128.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function accumulatorAddress( tx: Transaction, args: [string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::accumulator_address", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function accumulatorKey( tx: Transaction, args: [string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::accumulator_key", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function accumulatorU128Exists( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::accumulator_u128_exists", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function accumulatorU128Read( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::accumulator_u128_read", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function createU128( tx: Transaction, args: [bigint | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU128(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::create_u128", arguments: _args, }); } export function destroyU128( tx: Transaction, args: [accumulator.U128 | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::destroy_u128", arguments: _args, }); } export function emitDepositEvent( tx: Transaction, args: [ string | TransactionArgument, string | TransactionArgument, bigint | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); _args.push(transactionArgumentOrPureU64(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::emit_deposit_event", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function emitWithdrawEvent( tx: Transaction, args: [ string | TransactionArgument, string | TransactionArgument, bigint | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); _args.push(transactionArgumentOrPureU64(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::emit_withdraw_event", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isZeroU128( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::is_zero_u128", arguments: _args, }); } export function rootAddAccumulator( tx: Transaction, args: [ string | TransactionObjectArgument, accumulator.Key | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::root_add_accumulator", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function rootBorrowAccumulator( tx: Transaction, args: [ string | TransactionObjectArgument, accumulator.Key | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::root_borrow_accumulator", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function rootBorrowAccumulatorMut( tx: Transaction, args: [ string | TransactionObjectArgument, accumulator.Key | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::root_borrow_accumulator_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function rootHasAccumulator( tx: Transaction, args: [ string | TransactionObjectArgument, accumulator.Key | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::root_has_accumulator", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function rootId( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::root_id", arguments: _args, }); } export function rootIdMut( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::root_id_mut", arguments: _args, }); } export function rootRemoveAccumulator( tx: Transaction, args: [ string | TransactionObjectArgument, accumulator.Key | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::root_remove_accumulator", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function updateU128( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, bigint | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU128(args[1], tx)); _args.push(transactionArgumentOrPureU128(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::accumulator::update_u128", arguments: _args, }); } } export namespace view { export async function accumulatorAddress( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.accumulatorAddress(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], typeArguments, ); } export async function accumulatorKey( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.accumulatorKey(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [accumulator.Key] >(simulateRes, ["0x2::accumulator::Key"], typeArguments); } export async function accumulatorU128Exists( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.accumulatorU128Exists(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function accumulatorU128Read( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.accumulatorU128Read(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U128"], typeArguments, ); } export async function createU128( client: SuiGrpcClient, args: [bigint], ): Promise> { const tx = new Transaction(); builder.createU128(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [accumulator.U128] >(simulateRes, ["0x2::accumulator::U128"]); } export async function destroyU128( client: SuiGrpcClient, args: [accumulator.U128], ): Promise> { const tx = new Transaction(); builder.destroyU128(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function emitDepositEvent( client: SuiGrpcClient, args: [string, string, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.emitDepositEvent(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function emitWithdrawEvent( client: SuiGrpcClient, args: [string, string, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.emitWithdrawEvent(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function isZeroU128( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.isZeroU128(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function rootAddAccumulator( client: SuiGrpcClient, args: [string, accumulator.Key, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.rootAddAccumulator(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function rootBorrowAccumulator( client: SuiGrpcClient, args: [string, accumulator.Key], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.rootBorrowAccumulator(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function rootBorrowAccumulatorMut( client: SuiGrpcClient, args: [string, accumulator.Key], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.rootBorrowAccumulatorMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function rootHasAccumulator( client: SuiGrpcClient, args: [string, accumulator.Key], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.rootHasAccumulator(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function rootId( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.rootId(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::object::UID"], ); } export async function rootIdMut( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.rootIdMut(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::object::UID"], ); } export async function rootRemoveAccumulator( client: SuiGrpcClient, args: [string, accumulator.Key], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.rootRemoveAccumulator(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T1]>( simulateRes, ["T1"], typeArguments, ); } export async function updateU128( client: SuiGrpcClient, args: [string, bigint, bigint], ): Promise> { const tx = new Transaction(); builder.updateU128(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } } } export class accumulator_metadata extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("accumulator_metadata", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): accumulator_metadata { return new accumulator_metadata({ ...accumulator_metadata.DEFAULT_OPTIONS, ...options, }); } onEventAccumulatorObjectCountKey( func: ( event: accumulator_metadata.AccumulatorObjectCountKeyInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, accumulator_metadata.AccumulatorObjectCountKeyInstance >, eventFilter?: Omit, ): accumulator_metadata { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "accumulator_metadata::AccumulatorObjectCountKey", }, handlerOptions, ); return this; } onEventMetadataKey( func: ( event: accumulator_metadata.MetadataKeyInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, accumulator_metadata.MetadataKeyInstance >, eventFilter?: Omit, ): accumulator_metadata { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "accumulator_metadata::MetadataKey" }, handlerOptions, ); return this; } onEventOwnerKey( func: ( event: accumulator_metadata.OwnerKeyInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, accumulator_metadata.OwnerKeyInstance >, eventFilter?: Omit, ): accumulator_metadata { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "accumulator_metadata::OwnerKey" }, handlerOptions, ); return this; } } export namespace accumulator_metadata { export interface AccumulatorObjectCountKey { dummy_field: boolean; } export namespace AccumulatorObjectCountKey { export const TYPE_QNAME = "0x2::accumulator_metadata::AccumulatorObjectCountKey"; const TYPE = new TypeDescriptor( AccumulatorObjectCountKey.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export type AccumulatorObjectCountKeyInstance = TypedEventInstance & { data_decoded: AccumulatorObjectCountKey; type_arguments: []; }; export interface Metadata { fields: bag.Bag; } export namespace Metadata { export const TYPE_QNAME = "0x2::accumulator_metadata::Metadata"; const TYPE = new TypeDescriptor>(Metadata.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface MetadataKey { dummy_field: boolean; } export namespace MetadataKey { export const TYPE_QNAME = "0x2::accumulator_metadata::MetadataKey"; const TYPE = new TypeDescriptor>(MetadataKey.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type MetadataKeyInstance = TypedEventInstance> & { data_decoded: MetadataKey; type_arguments: [string]; }; export interface Owner { balances: bag.Bag; owner: string; } export namespace Owner { export const TYPE_QNAME = "0x2::accumulator_metadata::Owner"; const TYPE = new TypeDescriptor(Owner.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface OwnerKey { owner: string; } export namespace OwnerKey { export const TYPE_QNAME = "0x2::accumulator_metadata::OwnerKey"; const TYPE = new TypeDescriptor(OwnerKey.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type OwnerKeyInstance = TypedEventInstance & { data_decoded: OwnerKey; type_arguments: []; }; export namespace builder {} export namespace view {} } export namespace accumulator_settlement { export interface EventStreamHead { mmr: bigint[]; checkpoint_seq: bigint; num_events: bigint; } export namespace EventStreamHead { export const TYPE_QNAME = "0x2::accumulator_settlement::EventStreamHead"; const TYPE = new TypeDescriptor( EventStreamHead.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder {} export namespace view {} } export namespace address { export namespace builder { export function fromAsciiBytes( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address::from_ascii_bytes", arguments: _args, }); } export function fromBytes( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address::from_bytes", arguments: _args, }); } export function fromU256( tx: Transaction, args: [bigint | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU256(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address::from_u256", arguments: _args, }); } export function length( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::address::length", arguments: _args, }); } export function max(tx: Transaction, args: []): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::address::max", arguments: _args, }); } export function toAsciiString( tx: Transaction, args: [string | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address::to_ascii_string", arguments: _args, }); } export function toBytes( tx: Transaction, args: [string | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address::to_bytes", arguments: _args, }); } export function toString( tx: Transaction, args: [string | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address::to_string", arguments: _args, }); } export function toU256( tx: Transaction, args: [string | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address::to_u256", arguments: _args, }); } } export namespace view { export async function fromAsciiBytes( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.fromAsciiBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function fromBytes( client: SuiGrpcClient, args: [string[]], ): Promise> { const tx = new Transaction(); builder.fromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function fromU256( client: SuiGrpcClient, args: [bigint], ): Promise> { const tx = new Transaction(); builder.fromU256(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function length( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.length(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function max( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.max(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U256"], ); } export async function toAsciiString( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.toAsciiString(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.ascii.String] >(simulateRes, ["0x1::ascii::String"]); } export async function toBytes( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.toBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function toString( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.toString(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], ); } export async function toU256( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.toU256(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U256"], ); } } } export class address_alias extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("address_alias", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): address_alias { return new address_alias({ ...address_alias.DEFAULT_OPTIONS, ...options }); } onEntryAdd( func: (call: address_alias.AddPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): address_alias { this.onEntryFunctionCall( func, { ...filter, function: "address_alias::add", }, handlerOptions, ); return this; } onEntryEnable( func: (call: address_alias.EnablePayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, address_alias.EnablePayload >, ): address_alias { this.onEntryFunctionCall( func, { ...filter, function: "address_alias::enable", }, handlerOptions, ); return this; } onEntryRemove( func: (call: address_alias.RemovePayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, address_alias.RemovePayload >, ): address_alias { this.onEntryFunctionCall( func, { ...filter, function: "address_alias::remove", }, handlerOptions, ); return this; } onEntryReplaceAll( func: (call: address_alias.ReplaceAllPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, address_alias.ReplaceAllPayload >, ): address_alias { this.onEntryFunctionCall( func, { ...filter, function: "address_alias::replace_all", }, handlerOptions, ); return this; } onEventAliasKey( func: (event: address_alias.AliasKeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, address_alias.AliasKeyInstance >, eventFilter?: Omit, ): address_alias { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "address_alias::AliasKey" }, handlerOptions, ); return this; } } export namespace address_alias { export interface AddressAliasState { id: object$.UID; version: bigint; } export namespace AddressAliasState { export const TYPE_QNAME = "0x2::address_alias::AddressAliasState"; const TYPE = new TypeDescriptor( AddressAliasState.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface AddressAliases { id: object$.UID; aliases: vec_set.VecSet; } export namespace AddressAliases { export const TYPE_QNAME = "0x2::address_alias::AddressAliases"; const TYPE = new TypeDescriptor(AddressAliases.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface AliasKey { pos0: string; } export namespace AliasKey { export const TYPE_QNAME = "0x2::address_alias::AliasKey"; const TYPE = new TypeDescriptor(AliasKey.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type AliasKeyInstance = TypedEventInstance & { data_decoded: AliasKey; type_arguments: []; }; export namespace builder { export function add( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address_alias::add", arguments: _args, }); } export function enable( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address_alias::enable", arguments: _args, }); } export function remove( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address_alias::remove", arguments: _args, }); } export function replaceAll( tx: Transaction, args: [ string | TransactionObjectArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrVec(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::address_alias::replace_all", arguments: _args, }); } } export namespace view {} export interface AddPayload extends TypedFunctionPayload<[string, string]> { arguments_decoded: [string, string]; type_arguments: []; } export interface EnablePayload extends TypedFunctionPayload<[string, string]> { arguments_decoded: [string, string]; type_arguments: []; } export interface RemovePayload extends TypedFunctionPayload<[string, string]> { arguments_decoded: [string, string]; type_arguments: []; } export interface ReplaceAllPayload extends TypedFunctionPayload<[string, string[]]> { arguments_decoded: [string, string[]]; type_arguments: []; } } export class authenticator_state extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("authenticator_state", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): authenticator_state { return new authenticator_state({ ...authenticator_state.DEFAULT_OPTIONS, ...options, }); } onEventActiveJwk( func: ( event: authenticator_state.ActiveJwkInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, authenticator_state.ActiveJwkInstance >, eventFilter?: Omit, ): authenticator_state { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "authenticator_state::ActiveJwk" }, handlerOptions, ); return this; } onEventJWK( func: (event: authenticator_state.JWKInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, authenticator_state.JWKInstance >, eventFilter?: Omit, ): authenticator_state { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "authenticator_state::JWK" }, handlerOptions, ); return this; } onEventJwkId( func: (event: authenticator_state.JwkIdInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, authenticator_state.JwkIdInstance >, eventFilter?: Omit, ): authenticator_state { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "authenticator_state::JwkId" }, handlerOptions, ); return this; } } export namespace authenticator_state { export interface ActiveJwk { jwk_id: authenticator_state.JwkId; jwk: authenticator_state.JWK; epoch: bigint; } export namespace ActiveJwk { export const TYPE_QNAME = "0x2::authenticator_state::ActiveJwk"; const TYPE = new TypeDescriptor(ActiveJwk.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type ActiveJwkInstance = TypedEventInstance & { data_decoded: ActiveJwk; type_arguments: []; }; export interface AuthenticatorState { id: object$.UID; version: bigint; } export namespace AuthenticatorState { export const TYPE_QNAME = "0x2::authenticator_state::AuthenticatorState"; const TYPE = new TypeDescriptor( AuthenticatorState.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface AuthenticatorStateInner { version: bigint; active_jwks: authenticator_state.ActiveJwk[]; } export namespace AuthenticatorStateInner { export const TYPE_QNAME = "0x2::authenticator_state::AuthenticatorStateInner"; const TYPE = new TypeDescriptor( AuthenticatorStateInner.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface JWK { kty: string; e: string; n: string; alg: string; } export namespace JWK { export const TYPE_QNAME = "0x2::authenticator_state::JWK"; const TYPE = new TypeDescriptor(JWK.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type JWKInstance = TypedEventInstance & { data_decoded: JWK; type_arguments: []; }; export interface JwkId { iss: string; kid: string; } export namespace JwkId { export const TYPE_QNAME = "0x2::authenticator_state::JwkId"; const TYPE = new TypeDescriptor(JwkId.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type JwkIdInstance = TypedEventInstance & { data_decoded: JwkId; type_arguments: []; }; export namespace builder {} export namespace view {} } export namespace bag { export interface Bag { id: object$.UID; size: bigint; } export namespace Bag { export const TYPE_QNAME = "0x2::bag::Bag"; const TYPE = new TypeDescriptor(Bag.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function add( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bag::add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrow( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bag::borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrowMut( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bag::borrow_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function contains( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bag::contains", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function containsWithType( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bag::contains_with_type", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function destroyEmpty( tx: Transaction, args: [bag.Bag | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bag::destroy_empty", arguments: _args, }); } export function isEmpty( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bag::is_empty", arguments: _args, }); } export function length( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bag::length", arguments: _args, }); } export function new$(tx: Transaction, args: []): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::bag::new", arguments: _args, }); } export function remove( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bag::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } } export namespace view { export async function add( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.add(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function borrow( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function borrowMut( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function contains( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.contains(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function containsWithType( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.containsWithType(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function destroyEmpty( client: SuiGrpcClient, args: [bag.Bag], ): Promise> { const tx = new Transaction(); builder.destroyEmpty(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function isEmpty( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.isEmpty(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function length( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.length(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function new$( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.new$(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bag.Bag]>( simulateRes, ["0x2::bag::Bag"], ); } export async function remove( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T1]>( simulateRes, ["T1"], typeArguments, ); } } } export namespace balance { export type Balance = bigint; export namespace Balance { export const TYPE_QNAME = "0x2::balance::Balance"; const TYPE = new TypeDescriptor>(Balance.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface Supply { value: bigint; } export namespace Supply { export const TYPE_QNAME = "0x2::balance::Supply"; const TYPE = new TypeDescriptor>(Supply.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function createSupply( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::create_supply", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function createSupplyInternal( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::balance::create_supply_internal", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function decreaseSupply( tx: Transaction, args: [ string | TransactionObjectArgument, balance.Balance | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::decrease_supply", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroySupply( tx: Transaction, args: [balance.Supply | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::destroy_supply", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroyZero( tx: Transaction, args: [balance.Balance | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::destroy_zero", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function increaseSupply( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::increase_supply", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function join( tx: Transaction, args: [ string | TransactionObjectArgument, balance.Balance | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::join", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function redeemFunds( tx: Transaction, args: [ funds_accumulator.Withdrawal> | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::redeem_funds", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function sendFunds( tx: Transaction, args: [ balance.Balance | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::send_funds", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function settledFundsValue( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::settled_funds_value", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function split( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::split", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function supplyValue( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::supply_value", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function value( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::value", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function withdrawAll( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::withdraw_all", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function withdrawFundsFromObject( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::balance::withdraw_funds_from_object", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function zero( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::balance::zero", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function createSupply( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.createSupply(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [balance.Supply] >(simulateRes, ["0x2::balance::Supply"], typeArguments); } export async function createSupplyInternal( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.createSupplyInternal(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [balance.Supply] >(simulateRes, ["0x2::balance::Supply"], typeArguments); } export async function decreaseSupply( client: SuiGrpcClient, args: [string, balance.Balance], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.decreaseSupply(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function destroySupply( client: SuiGrpcClient, args: [balance.Supply], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroySupply(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function destroyZero( client: SuiGrpcClient, args: [balance.Balance], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroyZero(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function increaseSupply( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.increaseSupply(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [balance.Balance] >(simulateRes, ["0x2::balance::Balance"], typeArguments); } export async function join( client: SuiGrpcClient, args: [string, balance.Balance], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.join(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function redeemFunds( client: SuiGrpcClient, args: [funds_accumulator.Withdrawal>], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.redeemFunds(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [balance.Balance] >(simulateRes, ["0x2::balance::Balance"], typeArguments); } export async function sendFunds( client: SuiGrpcClient, args: [balance.Balance, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.sendFunds(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function settledFundsValue( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.settledFundsValue(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function split( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.split(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [balance.Balance] >(simulateRes, ["0x2::balance::Balance"], typeArguments); } export async function supplyValue( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.supplyValue(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function value( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.value(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function withdrawAll( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.withdrawAll(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [balance.Balance] >(simulateRes, ["0x2::balance::Balance"], typeArguments); } export async function withdrawFundsFromObject( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[funds_accumulator.Withdrawal>]> > { const tx = new Transaction(); builder.withdrawFundsFromObject(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [funds_accumulator.Withdrawal>] >( simulateRes, ["0x2::funds_accumulator::Withdrawal<0x2::balance::Balance>"], typeArguments, ); } export async function zero( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.zero(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [balance.Balance] >(simulateRes, ["0x2::balance::Balance"], typeArguments); } } } export class bcs extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("bcs", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): bcs { return new bcs({ ...bcs.DEFAULT_OPTIONS, ...options }); } onEventBCS( func: (event: bcs.BCSInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): bcs { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "bcs::BCS" }, handlerOptions, ); return this; } } export namespace bcs { export interface BCS { bytes: number[]; } export namespace BCS { export const TYPE_QNAME = "0x2::bcs::BCS"; const TYPE = new TypeDescriptor(BCS.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type BCSInstance = TypedEventInstance & { data_decoded: BCS; type_arguments: []; }; export namespace builder { export function intoRemainderBytes( tx: Transaction, args: [bcs.BCS | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::into_remainder_bytes", arguments: _args, }); } export function new$( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::new", arguments: _args, }); } export function peelAddress( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_address", arguments: _args, }); } export function peelBool( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_bool", arguments: _args, }); } export function peelEnumTag( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_enum_tag", arguments: _args, }); } export function peelOptionAddress( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_option_address", arguments: _args, }); } export function peelOptionBool( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_option_bool", arguments: _args, }); } export function peelOptionU128( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_option_u128", arguments: _args, }); } export function peelOptionU16( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_option_u16", arguments: _args, }); } export function peelOptionU256( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_option_u256", arguments: _args, }); } export function peelOptionU32( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_option_u32", arguments: _args, }); } export function peelOptionU64( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_option_u64", arguments: _args, }); } export function peelOptionU8( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_option_u8", arguments: _args, }); } export function peelU128( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_u128", arguments: _args, }); } export function peelU16( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_u16", arguments: _args, }); } export function peelU256( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_u256", arguments: _args, }); } export function peelU32( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_u32", arguments: _args, }); } export function peelU64( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_u64", arguments: _args, }); } export function peelU8( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_u8", arguments: _args, }); } export function peelVecAddress( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_vec_address", arguments: _args, }); } export function peelVecBool( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_vec_bool", arguments: _args, }); } export function peelVecLength( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_vec_length", arguments: _args, }); } export function peelVecU128( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_vec_u128", arguments: _args, }); } export function peelVecU16( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_vec_u16", arguments: _args, }); } export function peelVecU256( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_vec_u256", arguments: _args, }); } export function peelVecU32( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_vec_u32", arguments: _args, }); } export function peelVecU64( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_vec_u64", arguments: _args, }); } export function peelVecU8( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_vec_u8", arguments: _args, }); } export function peelVecVecU8( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::peel_vec_vec_u8", arguments: _args, }); } export function toBytes( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bcs::to_bytes", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function intoRemainderBytes( client: SuiGrpcClient, args: [bcs.BCS], ): Promise> { const tx = new Transaction(); builder.intoRemainderBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function new$( client: SuiGrpcClient, args: [string[]], ): Promise> { const tx = new Transaction(); builder.new$(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bcs.BCS]>( simulateRes, ["0x2::bcs::BCS"], ); } export async function peelAddress( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelAddress(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function peelBool( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelBool(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function peelEnumTag( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelEnumTag(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U32"], ); } export async function peelOptionAddress( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.peelOptionAddress(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option
"]); } export async function peelOptionBool( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.peelOptionBool(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"]); } export async function peelOptionU128( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.peelOptionU128(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"]); } export async function peelOptionU16( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.peelOptionU16(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"]); } export async function peelOptionU256( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.peelOptionU256(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"]); } export async function peelOptionU32( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.peelOptionU32(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"]); } export async function peelOptionU64( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.peelOptionU64(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"]); } export async function peelOptionU8( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.peelOptionU8(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"]); } export async function peelU128( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelU128(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U128"], ); } export async function peelU16( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelU16(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U16"], ); } export async function peelU256( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelU256(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U256"], ); } export async function peelU32( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelU32(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U32"], ); } export async function peelU64( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelU64(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function peelU8( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelU8(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], ); } export async function peelVecAddress( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelVecAddress(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string[]]>( simulateRes, ["Vector
"], ); } export async function peelVecBool( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelVecBool(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean[]]>( simulateRes, ["Vector"], ); } export async function peelVecLength( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelVecLength(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function peelVecU128( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelVecU128(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint[]]>( simulateRes, ["Vector"], ); } export async function peelVecU16( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelVecU16(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function peelVecU256( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelVecU256(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint[]]>( simulateRes, ["Vector"], ); } export async function peelVecU32( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelVecU32(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function peelVecU64( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelVecU64(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint[]]>( simulateRes, ["Vector"], ); } export async function peelVecU8( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelVecU8(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function peelVecVecU8( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.peelVecVecU8(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[][]]>( simulateRes, ["Vector>"], ); } export async function toBytes( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.toBytes(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], typeArguments, ); } } } export namespace bls12381 { export interface G1 { dummy_field: boolean; } export namespace G1 { export const TYPE_QNAME = "0x2::bls12381::G1"; const TYPE = new TypeDescriptor(G1.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface G2 { dummy_field: boolean; } export namespace G2 { export const TYPE_QNAME = "0x2::bls12381::G2"; const TYPE = new TypeDescriptor(G2.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface GT { dummy_field: boolean; } export namespace GT { export const TYPE_QNAME = "0x2::bls12381::GT"; const TYPE = new TypeDescriptor(GT.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface Scalar { dummy_field: boolean; } export namespace Scalar { export const TYPE_QNAME = "0x2::bls12381::Scalar"; const TYPE = new TypeDescriptor(Scalar.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface UncompressedG1 { dummy_field: boolean; } export namespace UncompressedG1 { export const TYPE_QNAME = "0x2::bls12381::UncompressedG1"; const TYPE = new TypeDescriptor(UncompressedG1.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function bls12381MinPkVerify( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::bls12381_min_pk_verify", arguments: _args, }); } export function bls12381MinSigVerify( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::bls12381_min_sig_verify", arguments: _args, }); } export function g1Add( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g1_add", arguments: _args, }); } export function g1Div( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g1_div", arguments: _args, }); } export function g1FromBytes( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g1_from_bytes", arguments: _args, }); } export function g1Generator( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g1_generator", arguments: _args, }); } export function g1Identity( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g1_identity", arguments: _args, }); } export function g1Mul( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g1_mul", arguments: _args, }); } export function g1MultiScalarMultiplication( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g1_multi_scalar_multiplication", arguments: _args, }); } export function g1Neg( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g1_neg", arguments: _args, }); } export function g1Sub( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g1_sub", arguments: _args, }); } export function g1ToUncompressedG1( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g1_to_uncompressed_g1", arguments: _args, }); } export function g2Add( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g2_add", arguments: _args, }); } export function g2Div( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g2_div", arguments: _args, }); } export function g2FromBytes( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g2_from_bytes", arguments: _args, }); } export function g2Generator( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g2_generator", arguments: _args, }); } export function g2Identity( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g2_identity", arguments: _args, }); } export function g2Mul( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g2_mul", arguments: _args, }); } export function g2MultiScalarMultiplication( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g2_multi_scalar_multiplication", arguments: _args, }); } export function g2Neg( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g2_neg", arguments: _args, }); } export function g2Sub( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::g2_sub", arguments: _args, }); } export function gtAdd( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::gt_add", arguments: _args, }); } export function gtDiv( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::gt_div", arguments: _args, }); } export function gtGenerator( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::gt_generator", arguments: _args, }); } export function gtIdentity( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::gt_identity", arguments: _args, }); } export function gtMul( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::gt_mul", arguments: _args, }); } export function gtNeg( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::gt_neg", arguments: _args, }); } export function gtSub( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::gt_sub", arguments: _args, }); } export function hashToG1( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::hash_to_g1", arguments: _args, }); } export function hashToG2( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::hash_to_g2", arguments: _args, }); } export function pairing( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::pairing", arguments: _args, }); } export function scalarAdd( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::scalar_add", arguments: _args, }); } export function scalarDiv( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::scalar_div", arguments: _args, }); } export function scalarFromBytes( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::scalar_from_bytes", arguments: _args, }); } export function scalarFromU64( tx: Transaction, args: [bigint | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::scalar_from_u64", arguments: _args, }); } export function scalarInv( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::scalar_inv", arguments: _args, }); } export function scalarMul( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::scalar_mul", arguments: _args, }); } export function scalarNeg( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::scalar_neg", arguments: _args, }); } export function scalarOne( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::scalar_one", arguments: _args, }); } export function scalarSub( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::scalar_sub", arguments: _args, }); } export function scalarZero( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::scalar_zero", arguments: _args, }); } export function uncompressedG1Sum( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::uncompressed_g1_sum", arguments: _args, }); } export function uncompressedG1ToG1( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::bls12381::uncompressed_g1_to_g1", arguments: _args, }); } } export namespace view { export async function bls12381MinPkVerify( client: SuiGrpcClient, args: [string, string, string], ): Promise> { const tx = new Transaction(); builder.bls12381MinPkVerify(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function bls12381MinSigVerify( client: SuiGrpcClient, args: [string, string, string], ): Promise> { const tx = new Transaction(); builder.bls12381MinSigVerify(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function g1Add( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.g1Add(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } export async function g1Div( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.g1Div(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } export async function g1FromBytes( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.g1FromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } export async function g1Generator( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.g1Generator(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } export async function g1Identity( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.g1Identity(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } export async function g1Mul( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.g1Mul(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } export async function g1MultiScalarMultiplication( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.g1MultiScalarMultiplication(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } export async function g1Neg( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.g1Neg(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } export async function g1Sub( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.g1Sub(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } export async function g1ToUncompressedG1( client: SuiGrpcClient, args: [string], ): Promise< TypedSimulateResults<[group_ops.Element]> > { const tx = new Transaction(); builder.g1ToUncompressedG1(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, [ "0x2::group_ops::Element<0x2::bls12381::UncompressedG1>", ]); } export async function g2Add( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.g2Add(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G2>"]); } export async function g2Div( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.g2Div(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G2>"]); } export async function g2FromBytes( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.g2FromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G2>"]); } export async function g2Generator( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.g2Generator(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G2>"]); } export async function g2Identity( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.g2Identity(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G2>"]); } export async function g2Mul( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.g2Mul(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G2>"]); } export async function g2MultiScalarMultiplication( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.g2MultiScalarMultiplication(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G2>"]); } export async function g2Neg( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.g2Neg(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G2>"]); } export async function g2Sub( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.g2Sub(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G2>"]); } export async function gtAdd( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.gtAdd(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::GT>"]); } export async function gtDiv( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.gtDiv(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::GT>"]); } export async function gtGenerator( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.gtGenerator(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::GT>"]); } export async function gtIdentity( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.gtIdentity(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::GT>"]); } export async function gtMul( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.gtMul(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::GT>"]); } export async function gtNeg( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.gtNeg(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::GT>"]); } export async function gtSub( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.gtSub(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::GT>"]); } export async function hashToG1( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.hashToG1(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } export async function hashToG2( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.hashToG2(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G2>"]); } export async function pairing( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.pairing(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::GT>"]); } export async function scalarAdd( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.scalarAdd(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::Scalar>"]); } export async function scalarDiv( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.scalarDiv(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::Scalar>"]); } export async function scalarFromBytes( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.scalarFromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::Scalar>"]); } export async function scalarFromU64( client: SuiGrpcClient, args: [bigint], ): Promise]>> { const tx = new Transaction(); builder.scalarFromU64(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::Scalar>"]); } export async function scalarInv( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.scalarInv(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::Scalar>"]); } export async function scalarMul( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.scalarMul(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::Scalar>"]); } export async function scalarNeg( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.scalarNeg(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::Scalar>"]); } export async function scalarOne( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.scalarOne(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::Scalar>"]); } export async function scalarSub( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.scalarSub(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::Scalar>"]); } export async function scalarZero( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.scalarZero(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::Scalar>"]); } export async function uncompressedG1Sum( client: SuiGrpcClient, args: [string], ): Promise< TypedSimulateResults<[group_ops.Element]> > { const tx = new Transaction(); builder.uncompressedG1Sum(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, [ "0x2::group_ops::Element<0x2::bls12381::UncompressedG1>", ]); } export async function uncompressedG1ToG1( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.uncompressedG1ToG1(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::bls12381::G1>"]); } } } export namespace borrow { export interface Borrow { ref: string; obj: object$.ID; } export namespace Borrow { export const TYPE_QNAME = "0x2::borrow::Borrow"; const TYPE = new TypeDescriptor(Borrow.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface Referent { id: string; value: _0x1.option.Option; } export namespace Referent { export const TYPE_QNAME = "0x2::borrow::Referent"; const TYPE = new TypeDescriptor>(Referent.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function borrow( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::borrow::borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroy( tx: Transaction, args: [borrow.Referent | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::borrow::destroy", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function new$( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::borrow::new", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function putBack( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, borrow.Borrow | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::borrow::put_back", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function borrow( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [T0, borrow.Borrow] >(simulateRes, ["T0", "0x2::borrow::Borrow"], typeArguments); } export async function destroy( client: SuiGrpcClient, args: [borrow.Referent], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroy(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0]>( simulateRes, ["T0"], typeArguments, ); } export async function new$( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.new$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [borrow.Referent] >(simulateRes, ["0x2::borrow::Referent"], typeArguments); } export async function putBack( client: SuiGrpcClient, args: [string, T0, borrow.Borrow], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.putBack(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } } } export namespace clock { export interface Clock { id: object$.UID; timestamp_ms: bigint; } export namespace Clock { export const TYPE_QNAME = "0x2::clock::Clock"; const TYPE = new TypeDescriptor(Clock.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function timestampMs( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::clock::timestamp_ms", arguments: _args, }); } } export namespace view { export async function timestampMs( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.timestampMs(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } } } export class coin extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("coin", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): coin { return new coin({ ...coin.DEFAULT_OPTIONS, ...options }); } onEntryBurn( func: (call: coin.BurnPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): coin { this.onEntryFunctionCall( func, { ...filter, function: "coin::burn", }, handlerOptions, ); return this; } onEntryJoin( func: (call: coin.JoinPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): coin { this.onEntryFunctionCall( func, { ...filter, function: "coin::join", }, handlerOptions, ); return this; } onEntryMintAndTransfer( func: (call: coin.MintAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, coin.MintAndTransferPayload >, ): coin { this.onEntryFunctionCall( func, { ...filter, function: "coin::mint_and_transfer", }, handlerOptions, ); return this; } onEntryUpdateDescription( func: (call: coin.UpdateDescriptionPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, coin.UpdateDescriptionPayload >, ): coin { this.onEntryFunctionCall( func, { ...filter, function: "coin::update_description", }, handlerOptions, ); return this; } onEntryUpdateIconUrl( func: (call: coin.UpdateIconUrlPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): coin { this.onEntryFunctionCall( func, { ...filter, function: "coin::update_icon_url", }, handlerOptions, ); return this; } onEntryUpdateName( func: (call: coin.UpdateNamePayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): coin { this.onEntryFunctionCall( func, { ...filter, function: "coin::update_name", }, handlerOptions, ); return this; } onEntryUpdateSymbol( func: (call: coin.UpdateSymbolPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): coin { this.onEntryFunctionCall( func, { ...filter, function: "coin::update_symbol", }, handlerOptions, ); return this; } onEventCurrencyCreated( func: (event: coin.CurrencyCreatedInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, coin.CurrencyCreatedInstance >, eventFilter?: Omit, ): coin { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "coin::CurrencyCreated" }, handlerOptions, ); return this; } } export namespace coin { export type Coin = string; export namespace Coin { export const TYPE_QNAME = "0x2::coin::Coin"; const TYPE = new TypeDescriptor>(Coin.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface CoinMetadata { id: object$.UID; decimals: number; name: string; symbol: _0x1.ascii.String; description: string; icon_url: _0x1.option.Option; } export namespace CoinMetadata { export const TYPE_QNAME = "0x2::coin::CoinMetadata"; const TYPE = new TypeDescriptor>(CoinMetadata.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface CurrencyCreated { decimals: number; } export namespace CurrencyCreated { export const TYPE_QNAME = "0x2::coin::CurrencyCreated"; const TYPE = new TypeDescriptor>( CurrencyCreated.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type CurrencyCreatedInstance = TypedEventInstance< CurrencyCreated > & { data_decoded: CurrencyCreated; type_arguments: [string]; }; export interface DenyCap { id: object$.UID; } export namespace DenyCap { export const TYPE_QNAME = "0x2::coin::DenyCap"; const TYPE = new TypeDescriptor>(DenyCap.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface DenyCapV2 { id: object$.UID; allow_global_pause: boolean; } export namespace DenyCapV2 { export const TYPE_QNAME = "0x2::coin::DenyCapV2"; const TYPE = new TypeDescriptor>(DenyCapV2.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface RegulatedCoinMetadata { id: object$.UID; coin_metadata_object: object$.ID; deny_cap_object: object$.ID; } export namespace RegulatedCoinMetadata { export const TYPE_QNAME = "0x2::coin::RegulatedCoinMetadata"; const TYPE = new TypeDescriptor>( RegulatedCoinMetadata.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface TreasuryCap { id: object$.UID; total_supply: balance.Supply; } export namespace TreasuryCap { export const TYPE_QNAME = "0x2::coin::TreasuryCap"; const TYPE = new TypeDescriptor>(TreasuryCap.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function allowGlobalPause( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::allow_global_pause", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function balance( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::balance", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function balanceMut( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::balance_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function burn( tx: Transaction, args: [ string | TransactionObjectArgument, coin.Coin | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::burn", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function createCurrency( tx: Transaction, args: [ T0 | TransactionArgument, number | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, _0x1.option.Option | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrVec(args[3], tx)); _args.push(transactionArgumentOrVec(args[4], tx)); _args.push(transactionArgumentOrPure(args[5], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::create_currency", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function createRegulatedCurrency( tx: Transaction, args: [ T0 | TransactionArgument, number | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, _0x1.option.Option | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrVec(args[3], tx)); _args.push(transactionArgumentOrVec(args[4], tx)); _args.push(transactionArgumentOrPure(args[5], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::create_regulated_currency", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function createRegulatedCurrencyV2( tx: Transaction, args: [ T0 | TransactionArgument, number | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, _0x1.option.Option | TransactionArgument, boolean | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrVec(args[3], tx)); _args.push(transactionArgumentOrVec(args[4], tx)); _args.push(transactionArgumentOrPure(args[5], tx)); _args.push(transactionArgumentOrPureBool(args[6], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::create_regulated_currency_v2", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyCapId( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_cap_id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListAdd( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPureAddress(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListContains( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_contains", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListRemove( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPureAddress(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListV2Add( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPureAddress(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_v2_add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListV2ContainsCurrentEpoch( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_v2_contains_current_epoch", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListV2ContainsNextEpoch( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_v2_contains_next_epoch", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListV2DisableGlobalPause( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_v2_disable_global_pause", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListV2EnableGlobalPause( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_v2_enable_global_pause", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListV2IsGlobalPauseEnabledCurrentEpoch( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_v2_is_global_pause_enabled_current_epoch", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListV2IsGlobalPauseEnabledNextEpoch( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_v2_is_global_pause_enabled_next_epoch", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyListV2Remove( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPureAddress(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::deny_list_v2_remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroyMetadata( tx: Transaction, args: [coin.CoinMetadata | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::destroy_metadata", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroyZero( tx: Transaction, args: [coin.Coin | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::destroy_zero", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function divideIntoN( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::divide_into_n", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function fromBalance( tx: Transaction, args: [balance.Balance | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::from_balance", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function getDecimals( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::get_decimals", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function getDescription( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::get_description", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function getIconUrl( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::get_icon_url", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function getName( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::get_name", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function getSymbol( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::get_symbol", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function intoBalance( tx: Transaction, args: [coin.Coin | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::into_balance", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function join( tx: Transaction, args: [ string | TransactionObjectArgument, coin.Coin | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::join", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function migrateRegulatedCurrencyToV2( tx: Transaction, args: [ string | TransactionObjectArgument, coin.DenyCap | TransactionArgument, boolean | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPureBool(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::migrate_regulated_currency_to_v2", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function mint( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::mint", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function mintAndTransfer( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrPureAddress(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::mint_and_transfer", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function mintBalance( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::mint_balance", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newCoinMetadata( tx: Transaction, args: [ number | TransactionArgument, string | TransactionArgument, _0x1.ascii.String | TransactionArgument, string | TransactionArgument, _0x1.ascii.String | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); _args.push(transactionArgumentOrPure(args[4], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::new_coin_metadata", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newDenyCapV2( tx: Transaction, args: [boolean | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureBool(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::new_deny_cap_v2", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newTreasuryCap( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::coin::new_treasury_cap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function put( tx: Transaction, args: [ string | TransactionObjectArgument, coin.Coin | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::put", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function redeemFunds( tx: Transaction, args: [ funds_accumulator.Withdrawal> | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::redeem_funds", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function sendFunds( tx: Transaction, args: [coin.Coin | TransactionArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::send_funds", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function split( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::split", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function supply( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::supply", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function supplyImmut( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::supply_immut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function supplyMut( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::supply_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function take( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::take", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function totalSupply( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::total_supply", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function treasuryIntoSupply( tx: Transaction, args: [coin.TreasuryCap | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::treasury_into_supply", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function updateCoinMetadata( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionArgument, _0x1.ascii.String | TransactionArgument, string | TransactionArgument, _0x1.ascii.String | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); _args.push(transactionArgumentOrPure(args[4], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::update_coin_metadata", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function updateDescription( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::update_description", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function updateIconUrl( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, _0x1.ascii.String | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::update_icon_url", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function updateName( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::update_name", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function updateSymbol( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, _0x1.ascii.String | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::update_symbol", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function value( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin::value", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function zero( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::coin::zero", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function allowGlobalPause( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.allowGlobalPause(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function balance( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.balance(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::balance::Balance"], typeArguments, ); } export async function balanceMut( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.balanceMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::balance::Balance"], typeArguments, ); } export async function burn( client: SuiGrpcClient, args: [string, coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.burn(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function createCurrency( client: SuiGrpcClient, args: [ T0, number, string[], string[], string[], _0x1.option.Option, ], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[coin.TreasuryCap, coin.CoinMetadata]> > { const tx = new Transaction(); builder.createCurrency(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.TreasuryCap, coin.CoinMetadata] >( simulateRes, ["0x2::coin::TreasuryCap", "0x2::coin::CoinMetadata"], typeArguments, ); } export async function createRegulatedCurrency( client: SuiGrpcClient, args: [ T0, number, string[], string[], string[], _0x1.option.Option, ], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults< [coin.TreasuryCap, coin.DenyCap, coin.CoinMetadata] > > { const tx = new Transaction(); builder.createRegulatedCurrency(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.TreasuryCap, coin.DenyCap, coin.CoinMetadata] >( simulateRes, [ "0x2::coin::TreasuryCap", "0x2::coin::DenyCap", "0x2::coin::CoinMetadata", ], typeArguments, ); } export async function createRegulatedCurrencyV2( client: SuiGrpcClient, args: [ T0, number, string[], string[], string[], _0x1.option.Option, boolean, ], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults< [coin.TreasuryCap, coin.DenyCapV2, coin.CoinMetadata] > > { const tx = new Transaction(); builder.createRegulatedCurrencyV2(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.TreasuryCap, coin.DenyCapV2, coin.CoinMetadata] >( simulateRes, [ "0x2::coin::TreasuryCap", "0x2::coin::DenyCapV2", "0x2::coin::CoinMetadata", ], typeArguments, ); } export async function denyCapId( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyCapId(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], typeArguments, ); } export async function denyListAdd( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListAdd(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function denyListContains( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListContains(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function denyListRemove( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListRemove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function denyListV2Add( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListV2Add(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function denyListV2ContainsCurrentEpoch( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListV2ContainsCurrentEpoch(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function denyListV2ContainsNextEpoch( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListV2ContainsNextEpoch(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function denyListV2DisableGlobalPause( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListV2DisableGlobalPause(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function denyListV2EnableGlobalPause( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListV2EnableGlobalPause(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function denyListV2IsGlobalPauseEnabledCurrentEpoch( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListV2IsGlobalPauseEnabledCurrentEpoch( tx, args, typeArguments, ); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function denyListV2IsGlobalPauseEnabledNextEpoch( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListV2IsGlobalPauseEnabledNextEpoch(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function denyListV2Remove( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.denyListV2Remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function destroyMetadata( client: SuiGrpcClient, args: [coin.CoinMetadata], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroyMetadata(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function destroyZero( client: SuiGrpcClient, args: [coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroyZero(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function divideIntoN( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise[]]>> { const tx = new Transaction(); builder.divideIntoN(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.Coin[]] >(simulateRes, ["Vector<0x2::coin::Coin>"], typeArguments); } export async function fromBalance( client: SuiGrpcClient, args: [balance.Balance], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.fromBalance(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[coin.Coin]>( simulateRes, ["0x2::coin::Coin"], typeArguments, ); } export async function getDecimals( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.getDecimals(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], typeArguments, ); } export async function getDescription( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.getDescription(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], typeArguments, ); } export async function getIconUrl( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.getIconUrl(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option<0x2::url::Url>"], typeArguments); } export async function getName( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.getName(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], typeArguments, ); } export async function getSymbol( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.getSymbol(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.ascii.String] >(simulateRes, ["0x1::ascii::String"], typeArguments); } export async function intoBalance( client: SuiGrpcClient, args: [coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.intoBalance(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [balance.Balance] >(simulateRes, ["0x2::balance::Balance"], typeArguments); } export async function join( client: SuiGrpcClient, args: [string, coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.join(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function migrateRegulatedCurrencyToV2( client: SuiGrpcClient, args: [string, coin.DenyCap, boolean], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.migrateRegulatedCurrencyToV2(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.DenyCapV2] >(simulateRes, ["0x2::coin::DenyCapV2"], typeArguments); } export async function mint( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.mint(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[coin.Coin]>( simulateRes, ["0x2::coin::Coin"], typeArguments, ); } export async function mintAndTransfer( client: SuiGrpcClient, args: [string, bigint, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.mintAndTransfer(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function mintBalance( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.mintBalance(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [balance.Balance] >(simulateRes, ["0x2::balance::Balance"], typeArguments); } export async function newCoinMetadata( client: SuiGrpcClient, args: [number, string, _0x1.ascii.String, string, _0x1.ascii.String], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.newCoinMetadata(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.CoinMetadata] >(simulateRes, ["0x2::coin::CoinMetadata"], typeArguments); } export async function newDenyCapV2( client: SuiGrpcClient, args: [boolean], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.newDenyCapV2(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.DenyCapV2] >(simulateRes, ["0x2::coin::DenyCapV2"], typeArguments); } export async function newTreasuryCap( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.newTreasuryCap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.TreasuryCap] >(simulateRes, ["0x2::coin::TreasuryCap"], typeArguments); } export async function put( client: SuiGrpcClient, args: [string, coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.put(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function redeemFunds( client: SuiGrpcClient, args: [funds_accumulator.Withdrawal>], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.redeemFunds(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[coin.Coin]>( simulateRes, ["0x2::coin::Coin"], typeArguments, ); } export async function sendFunds( client: SuiGrpcClient, args: [coin.Coin, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.sendFunds(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function split( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.split(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[coin.Coin]>( simulateRes, ["0x2::coin::Coin"], typeArguments, ); } export async function supply( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.supply(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::balance::Supply"], typeArguments, ); } export async function supplyImmut( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.supplyImmut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::balance::Supply"], typeArguments, ); } export async function supplyMut( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.supplyMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::balance::Supply"], typeArguments, ); } export async function take( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.take(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[coin.Coin]>( simulateRes, ["0x2::coin::Coin"], typeArguments, ); } export async function totalSupply( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.totalSupply(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function treasuryIntoSupply( client: SuiGrpcClient, args: [coin.TreasuryCap], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.treasuryIntoSupply(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [balance.Supply] >(simulateRes, ["0x2::balance::Supply"], typeArguments); } export async function updateCoinMetadata( client: SuiGrpcClient, args: [string, string, _0x1.ascii.String, string, _0x1.ascii.String], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.updateCoinMetadata(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function updateDescription( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.updateDescription(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function updateIconUrl( client: SuiGrpcClient, args: [string, string, _0x1.ascii.String], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.updateIconUrl(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function updateName( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.updateName(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function updateSymbol( client: SuiGrpcClient, args: [string, string, _0x1.ascii.String], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.updateSymbol(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function value( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.value(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function zero( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.zero(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[coin.Coin]>( simulateRes, ["0x2::coin::Coin"], typeArguments, ); } } export interface BurnPayload extends TypedFunctionPayload<[string, coin.Coin]> { arguments_decoded: [string, coin.Coin]; type_arguments: [string]; } export interface JoinPayload extends TypedFunctionPayload<[string, coin.Coin]> { arguments_decoded: [string, coin.Coin]; type_arguments: [string]; } export interface MintAndTransferPayload extends TypedFunctionPayload<[string, bigint, string, string]> { arguments_decoded: [string, bigint, string, string]; type_arguments: [string]; } export interface UpdateDescriptionPayload extends TypedFunctionPayload<[string, string, string]> { arguments_decoded: [string, string, string]; type_arguments: [string]; } export interface UpdateIconUrlPayload extends TypedFunctionPayload<[string, string, _0x1.ascii.String]> { arguments_decoded: [string, string, _0x1.ascii.String]; type_arguments: [string]; } export interface UpdateNamePayload extends TypedFunctionPayload<[string, string, string]> { arguments_decoded: [string, string, string]; type_arguments: [string]; } export interface UpdateSymbolPayload extends TypedFunctionPayload<[string, string, _0x1.ascii.String]> { arguments_decoded: [string, string, _0x1.ascii.String]; type_arguments: [string]; } } export class coin_registry extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("coin_registry", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): coin_registry { return new coin_registry({ ...coin_registry.DEFAULT_OPTIONS, ...options }); } onEventCurrencyKey( func: (event: coin_registry.CurrencyKeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, coin_registry.CurrencyKeyInstance >, eventFilter?: Omit, ): coin_registry { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "coin_registry::CurrencyKey" }, handlerOptions, ); return this; } onEventLegacyMetadataKey( func: ( event: coin_registry.LegacyMetadataKeyInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, coin_registry.LegacyMetadataKeyInstance >, eventFilter?: Omit, ): coin_registry { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "coin_registry::LegacyMetadataKey" }, handlerOptions, ); return this; } } export namespace coin_registry { export interface MetadataCapState { fields: {}; variant: "Claimed" | "Unclaimed" | "Deleted"; } export namespace MetadataCapState { export const TYPE_QNAME = "0x2::coin_registry::MetadataCapState"; const TYPE = new TypeDescriptor( MetadataCapState.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface RegulatedState { fields: {}; variant: "Regulated" | "Unregulated" | "Unknown"; } export namespace RegulatedState { export const TYPE_QNAME = "0x2::coin_registry::RegulatedState"; const TYPE = new TypeDescriptor(RegulatedState.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface SupplyState { fields: {}; variant: "Fixed" | "BurnOnly" | "Unknown"; } export namespace SupplyState { export const TYPE_QNAME = "0x2::coin_registry::SupplyState"; const TYPE = new TypeDescriptor>(SupplyState.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface Borrow { dummy_field: boolean; } export namespace Borrow { export const TYPE_QNAME = "0x2::coin_registry::Borrow"; const TYPE = new TypeDescriptor>(Borrow.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface CoinRegistry { id: object$.UID; } export namespace CoinRegistry { export const TYPE_QNAME = "0x2::coin_registry::CoinRegistry"; const TYPE = new TypeDescriptor(CoinRegistry.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface Currency { id: object$.UID; decimals: number; name: string; symbol: string; description: string; icon_url: string; supply: _0x1.option.Option>; regulated: coin_registry.RegulatedState; treasury_cap_id: _0x1.option.Option; metadata_cap_id: coin_registry.MetadataCapState; extra_fields: vec_map.VecMap; } export namespace Currency { export const TYPE_QNAME = "0x2::coin_registry::Currency"; const TYPE = new TypeDescriptor>(Currency.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface CurrencyInitializer { currency: coin_registry.Currency; extra_fields: bag.Bag; is_otw: boolean; } export namespace CurrencyInitializer { export const TYPE_QNAME = "0x2::coin_registry::CurrencyInitializer"; const TYPE = new TypeDescriptor>( CurrencyInitializer.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface CurrencyKey { dummy_field: boolean; } export namespace CurrencyKey { export const TYPE_QNAME = "0x2::coin_registry::CurrencyKey"; const TYPE = new TypeDescriptor>(CurrencyKey.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type CurrencyKeyInstance = TypedEventInstance> & { data_decoded: CurrencyKey; type_arguments: [string]; }; export interface ExtraField { pos0: _0x1.type_name.TypeName; pos1: number[]; } export namespace ExtraField { export const TYPE_QNAME = "0x2::coin_registry::ExtraField"; const TYPE = new TypeDescriptor(ExtraField.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface LegacyMetadataKey { dummy_field: boolean; } export namespace LegacyMetadataKey { export const TYPE_QNAME = "0x2::coin_registry::LegacyMetadataKey"; const TYPE = new TypeDescriptor( LegacyMetadataKey.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export type LegacyMetadataKeyInstance = TypedEventInstance & { data_decoded: LegacyMetadataKey; type_arguments: []; }; export interface MetadataCap { id: object$.UID; } export namespace MetadataCap { export const TYPE_QNAME = "0x2::coin_registry::MetadataCap"; const TYPE = new TypeDescriptor>(MetadataCap.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function borrowLegacyMetadata( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::borrow_legacy_metadata", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function burn( tx: Transaction, args: [ string | TransactionObjectArgument, coin.Coin | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::burn", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function burnBalance( tx: Transaction, args: [ string | TransactionObjectArgument, balance.Balance | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::burn_balance", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function claimMetadataCap( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::claim_metadata_cap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function decimals( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::decimals", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function deleteMetadataCap( tx: Transaction, args: [ string | TransactionObjectArgument, coin_registry.MetadataCap | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::delete_metadata_cap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function deleteMigratedLegacyMetadata( tx: Transaction, args: [ string | TransactionObjectArgument, coin.CoinMetadata | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::delete_migrated_legacy_metadata", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function denyCapId( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::deny_cap_id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function description( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::description", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function exists( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::exists", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function finalize( tx: Transaction, args: [coin_registry.CurrencyInitializer | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::finalize", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function finalizeAndDeleteMetadataCap( tx: Transaction, args: [coin_registry.CurrencyInitializer | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::finalize_and_delete_metadata_cap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function finalizeRegistration( tx: Transaction, args: [ string | TransactionObjectArgument, transfer.Receiving> | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::finalize_registration", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function iconUrl( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::icon_url", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isMetadataCapClaimed( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::is_metadata_cap_claimed", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isMetadataCapDeleted( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::is_metadata_cap_deleted", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isRegulated( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::is_regulated", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isSupplyBurnOnly( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::is_supply_burn_only", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isSupplyFixed( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::is_supply_fixed", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function makeRegulated( tx: Transaction, args: [string | TransactionObjectArgument, boolean | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureBool(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::make_regulated", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function makeSupplyBurnOnly( tx: Transaction, args: [ string | TransactionObjectArgument, coin.TreasuryCap | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::make_supply_burn_only", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function makeSupplyBurnOnlyInit( tx: Transaction, args: [ string | TransactionObjectArgument, coin.TreasuryCap | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::make_supply_burn_only_init", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function makeSupplyFixed( tx: Transaction, args: [ string | TransactionObjectArgument, coin.TreasuryCap | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::make_supply_fixed", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function makeSupplyFixedInit( tx: Transaction, args: [ string | TransactionObjectArgument, coin.TreasuryCap | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::make_supply_fixed_init", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function metadataCapId( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::metadata_cap_id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function migrateLegacyMetadata( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::migrate_legacy_metadata", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function migrateRegulatedStateByCap( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::migrate_regulated_state_by_cap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function migrateRegulatedStateByMetadata( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::migrate_regulated_state_by_metadata", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function name( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::name", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newCurrency( tx: Transaction, args: [ string | TransactionObjectArgument, number | TransactionArgument, string | TransactionArgument, string | TransactionArgument, string | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); _args.push(transactionArgumentOrPure(args[4], tx)); _args.push(transactionArgumentOrPure(args[5], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::new_currency", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newCurrencyWithOtw( tx: Transaction, args: [ T0 | TransactionArgument, number | TransactionArgument, string | TransactionArgument, string | TransactionArgument, string | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); _args.push(transactionArgumentOrPure(args[4], tx)); _args.push(transactionArgumentOrPure(args[5], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::new_currency_with_otw", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function returnBorrowedLegacyMetadata( tx: Transaction, args: [ string | TransactionObjectArgument, coin.CoinMetadata | TransactionArgument, coin_registry.Borrow | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::return_borrowed_legacy_metadata", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function setDescription( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::set_description", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function setIconUrl( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::set_icon_url", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function setName( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::set_name", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function setTreasuryCapId( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::set_treasury_cap_id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function symbol$( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::symbol", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function totalSupply( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::total_supply", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function treasuryCapId( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::treasury_cap_id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function updateFromLegacyMetadata( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::coin_registry::update_from_legacy_metadata", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function borrowLegacyMetadata( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[coin.CoinMetadata, coin_registry.Borrow]> > { const tx = new Transaction(); builder.borrowLegacyMetadata(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.CoinMetadata, coin_registry.Borrow] >( simulateRes, ["0x2::coin::CoinMetadata", "0x2::coin_registry::Borrow"], typeArguments, ); } export async function burn( client: SuiGrpcClient, args: [string, coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.burn(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function burnBalance( client: SuiGrpcClient, args: [string, balance.Balance], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.burnBalance(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function claimMetadataCap( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.claimMetadataCap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin_registry.MetadataCap] >(simulateRes, ["0x2::coin_registry::MetadataCap"], typeArguments); } export async function decimals( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.decimals(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], typeArguments, ); } export async function deleteMetadataCap( client: SuiGrpcClient, args: [string, coin_registry.MetadataCap], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.deleteMetadataCap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function deleteMigratedLegacyMetadata( client: SuiGrpcClient, args: [string, coin.CoinMetadata], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.deleteMigratedLegacyMetadata(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function denyCapId( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.denyCapId(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option<0x2::object::ID>"], typeArguments); } export async function description( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.description(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], typeArguments, ); } export async function exists( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.exists(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function finalize( client: SuiGrpcClient, args: [coin_registry.CurrencyInitializer], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.finalize(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin_registry.MetadataCap] >(simulateRes, ["0x2::coin_registry::MetadataCap"], typeArguments); } export async function finalizeAndDeleteMetadataCap( client: SuiGrpcClient, args: [coin_registry.CurrencyInitializer], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.finalizeAndDeleteMetadataCap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function finalizeRegistration( client: SuiGrpcClient, args: [string, transfer.Receiving>], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.finalizeRegistration(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function iconUrl( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.iconUrl(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], typeArguments, ); } export async function isMetadataCapClaimed( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isMetadataCapClaimed(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function isMetadataCapDeleted( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isMetadataCapDeleted(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function isRegulated( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isRegulated(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function isSupplyBurnOnly( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isSupplyBurnOnly(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function isSupplyFixed( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isSupplyFixed(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function makeRegulated( client: SuiGrpcClient, args: [string, boolean], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.makeRegulated(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.DenyCapV2] >(simulateRes, ["0x2::coin::DenyCapV2"], typeArguments); } export async function makeSupplyBurnOnly( client: SuiGrpcClient, args: [string, coin.TreasuryCap], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.makeSupplyBurnOnly(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function makeSupplyBurnOnlyInit( client: SuiGrpcClient, args: [string, coin.TreasuryCap], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.makeSupplyBurnOnlyInit(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function makeSupplyFixed( client: SuiGrpcClient, args: [string, coin.TreasuryCap], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.makeSupplyFixed(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function makeSupplyFixedInit( client: SuiGrpcClient, args: [string, coin.TreasuryCap], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.makeSupplyFixedInit(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function metadataCapId( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.metadataCapId(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option<0x2::object::ID>"], typeArguments); } export async function migrateLegacyMetadata( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.migrateLegacyMetadata(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function migrateRegulatedStateByCap( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.migrateRegulatedStateByCap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function migrateRegulatedStateByMetadata( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.migrateRegulatedStateByMetadata(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function name( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.name(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], typeArguments, ); } export async function newCurrency( client: SuiGrpcClient, args: [string, number, string, string, string, string], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults< [coin_registry.CurrencyInitializer, coin.TreasuryCap] > > { const tx = new Transaction(); builder.newCurrency(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin_registry.CurrencyInitializer, coin.TreasuryCap] >( simulateRes, [ "0x2::coin_registry::CurrencyInitializer", "0x2::coin::TreasuryCap", ], typeArguments, ); } export async function newCurrencyWithOtw( client: SuiGrpcClient, args: [T0, number, string, string, string, string], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults< [coin_registry.CurrencyInitializer, coin.TreasuryCap] > > { const tx = new Transaction(); builder.newCurrencyWithOtw(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin_registry.CurrencyInitializer, coin.TreasuryCap] >( simulateRes, [ "0x2::coin_registry::CurrencyInitializer", "0x2::coin::TreasuryCap", ], typeArguments, ); } export async function returnBorrowedLegacyMetadata( client: SuiGrpcClient, args: [string, coin.CoinMetadata, coin_registry.Borrow], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.returnBorrowedLegacyMetadata(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function setDescription( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.setDescription(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function setIconUrl( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.setIconUrl(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function setName( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.setName(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function setTreasuryCapId( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.setTreasuryCapId(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function symbol$( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.symbol$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], typeArguments, ); } export async function totalSupply( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.totalSupply(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } export async function treasuryCapId( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.treasuryCapId(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option<0x2::object::ID>"], typeArguments); } export async function updateFromLegacyMetadata( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.updateFromLegacyMetadata(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } } } export namespace config { export interface Config { id: object$.UID; } export namespace Config { export const TYPE_QNAME = "0x2::config::Config"; const TYPE = new TypeDescriptor>(Config.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface Setting { data: _0x1.option.Option>; } export namespace Setting { export const TYPE_QNAME = "0x2::config::Setting"; const TYPE = new TypeDescriptor>(Setting.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface SettingData { newer_value_epoch: bigint; newer_value: _0x1.option.Option; older_value_opt: _0x1.option.Option; } export namespace SettingData { export const TYPE_QNAME = "0x2::config::SettingData"; const TYPE = new TypeDescriptor>(SettingData.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function addForNextEpoch( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, T1 | TransactionArgument, T2 | TransactionArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::config::add_for_next_epoch", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function borrowForNextEpochMut( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, T1 | TransactionArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::config::borrow_for_next_epoch_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function existsWithType( tx: Transaction, args: [string | TransactionObjectArgument, T1 | TransactionArgument], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::config::exists_with_type", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function existsWithTypeForNextEpoch( tx: Transaction, args: [string | TransactionObjectArgument, T1 | TransactionArgument], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::config::exists_with_type_for_next_epoch", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function new$( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::config::new", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function readSetting( tx: Transaction, args: [object$.ID | TransactionArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::config::read_setting", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function readSettingForNextEpoch( tx: Transaction, args: [string | TransactionObjectArgument, T1 | TransactionArgument], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::config::read_setting_for_next_epoch", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function removeForNextEpoch( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, T1 | TransactionArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::config::remove_for_next_epoch", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function share( tx: Transaction, args: [config.Config | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::config::share", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function transfer( tx: Transaction, args: [ config.Config | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::config::transfer", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function addForNextEpoch( client: SuiGrpcClient, args: [string, string, T1, T2], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise]>> { const tx = new Transaction(); builder.addForNextEpoch(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } export async function borrowForNextEpochMut( client: SuiGrpcClient, args: [string, string, T1], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.borrowForNextEpochMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T2"], typeArguments, ); } export async function existsWithType( client: SuiGrpcClient, args: [string, T1], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.existsWithType(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function existsWithTypeForNextEpoch< T0 = any, T1 = any, T2 = any, >( client: SuiGrpcClient, args: [string, T1], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.existsWithTypeForNextEpoch(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function new$( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.new$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [config.Config] >(simulateRes, ["0x2::config::Config"], typeArguments); } export async function readSetting( client: SuiGrpcClient, args: [object$.ID, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.readSetting(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } export async function readSettingForNextEpoch( client: SuiGrpcClient, args: [string, T1], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise]>> { const tx = new Transaction(); builder.readSettingForNextEpoch(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } export async function removeForNextEpoch( client: SuiGrpcClient, args: [string, string, T1], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise]>> { const tx = new Transaction(); builder.removeForNextEpoch(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } export async function share( client: SuiGrpcClient, args: [config.Config], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.share(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function transfer( client: SuiGrpcClient, args: [config.Config, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.transfer(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } } } export class deny_list extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("deny_list", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): deny_list { return new deny_list({ ...deny_list.DEFAULT_OPTIONS, ...options }); } onEventAddressKey( func: (event: deny_list.AddressKeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, deny_list.AddressKeyInstance >, eventFilter?: Omit, ): deny_list { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "deny_list::AddressKey" }, handlerOptions, ); return this; } onEventConfigKey( func: (event: deny_list.ConfigKeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, deny_list.ConfigKeyInstance >, eventFilter?: Omit, ): deny_list { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "deny_list::ConfigKey" }, handlerOptions, ); return this; } onEventGlobalPauseKey( func: (event: deny_list.GlobalPauseKeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, deny_list.GlobalPauseKeyInstance >, eventFilter?: Omit, ): deny_list { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "deny_list::GlobalPauseKey" }, handlerOptions, ); return this; } onEventPerTypeConfigCreated( func: ( event: deny_list.PerTypeConfigCreatedInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, deny_list.PerTypeConfigCreatedInstance >, eventFilter?: Omit, ): deny_list { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "deny_list::PerTypeConfigCreated" }, handlerOptions, ); return this; } } export namespace deny_list { export interface AddressKey { pos0: string; } export namespace AddressKey { export const TYPE_QNAME = "0x2::deny_list::AddressKey"; const TYPE = new TypeDescriptor(AddressKey.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type AddressKeyInstance = TypedEventInstance & { data_decoded: AddressKey; type_arguments: []; }; export interface ConfigKey { per_type_index: bigint; per_type_key: number[]; } export namespace ConfigKey { export const TYPE_QNAME = "0x2::deny_list::ConfigKey"; const TYPE = new TypeDescriptor(ConfigKey.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type ConfigKeyInstance = TypedEventInstance & { data_decoded: ConfigKey; type_arguments: []; }; export interface ConfigWriteCap { dummy_field: boolean; } export namespace ConfigWriteCap { export const TYPE_QNAME = "0x2::deny_list::ConfigWriteCap"; const TYPE = new TypeDescriptor(ConfigWriteCap.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface DenyList { id: object$.UID; lists: bag.Bag; } export namespace DenyList { export const TYPE_QNAME = "0x2::deny_list::DenyList"; const TYPE = new TypeDescriptor(DenyList.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface GlobalPauseKey { dummy_field: boolean; } export namespace GlobalPauseKey { export const TYPE_QNAME = "0x2::deny_list::GlobalPauseKey"; const TYPE = new TypeDescriptor(GlobalPauseKey.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type GlobalPauseKeyInstance = TypedEventInstance & { data_decoded: GlobalPauseKey; type_arguments: []; }; export interface PerTypeConfigCreated { key: deny_list.ConfigKey; config_id: object$.ID; } export namespace PerTypeConfigCreated { export const TYPE_QNAME = "0x2::deny_list::PerTypeConfigCreated"; const TYPE = new TypeDescriptor( PerTypeConfigCreated.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export type PerTypeConfigCreatedInstance = TypedEventInstance & { data_decoded: PerTypeConfigCreated; type_arguments: []; }; export interface PerTypeList { id: object$.UID; denied_count: table.Table; denied_addresses: table.Table>; } export namespace PerTypeList { export const TYPE_QNAME = "0x2::deny_list::PerTypeList"; const TYPE = new TypeDescriptor(PerTypeList.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function migrateV1ToV2( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::migrate_v1_to_v2", arguments: _args, }); } export function v1Add( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, string | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrPureAddress(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v1_add", arguments: _args, }); } export function v1Contains( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, string | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrPureAddress(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v1_contains", arguments: _args, }); } export function v1Remove( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, string | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrPureAddress(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v1_remove", arguments: _args, }); } export function v2Add( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, string | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrPureAddress(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v2_add", arguments: _args, }); } export function v2ContainsCurrentEpoch( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, string | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrPureAddress(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v2_contains_current_epoch", arguments: _args, }); } export function v2ContainsNextEpoch( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, string | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrPureAddress(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v2_contains_next_epoch", arguments: _args, }); } export function v2DisableGlobalPause( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v2_disable_global_pause", arguments: _args, }); } export function v2EnableGlobalPause( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v2_enable_global_pause", arguments: _args, }); } export function v2IsGlobalPauseEnabledCurrentEpoch( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v2_is_global_pause_enabled_current_epoch", arguments: _args, }); } export function v2IsGlobalPauseEnabledNextEpoch( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v2_is_global_pause_enabled_next_epoch", arguments: _args, }); } export function v2Remove( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, string | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrPureAddress(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::deny_list::v2_remove", arguments: _args, }); } } export namespace view { export async function migrateV1ToV2( client: SuiGrpcClient, args: [string, bigint, string[]], ): Promise> { const tx = new Transaction(); builder.migrateV1ToV2(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function v1Add( client: SuiGrpcClient, args: [string, bigint, string[], string], ): Promise> { const tx = new Transaction(); builder.v1Add(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function v1Contains( client: SuiGrpcClient, args: [string, bigint, string[], string], ): Promise> { const tx = new Transaction(); builder.v1Contains(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function v1Remove( client: SuiGrpcClient, args: [string, bigint, string[], string], ): Promise> { const tx = new Transaction(); builder.v1Remove(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function v2Add( client: SuiGrpcClient, args: [string, bigint, string[], string], ): Promise> { const tx = new Transaction(); builder.v2Add(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function v2ContainsCurrentEpoch( client: SuiGrpcClient, args: [string, bigint, string[], string], ): Promise> { const tx = new Transaction(); builder.v2ContainsCurrentEpoch(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function v2ContainsNextEpoch( client: SuiGrpcClient, args: [string, bigint, string[], string], ): Promise> { const tx = new Transaction(); builder.v2ContainsNextEpoch(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function v2DisableGlobalPause( client: SuiGrpcClient, args: [string, bigint, string[]], ): Promise> { const tx = new Transaction(); builder.v2DisableGlobalPause(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function v2EnableGlobalPause( client: SuiGrpcClient, args: [string, bigint, string[]], ): Promise> { const tx = new Transaction(); builder.v2EnableGlobalPause(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function v2IsGlobalPauseEnabledCurrentEpoch( client: SuiGrpcClient, args: [string, bigint, string[]], ): Promise> { const tx = new Transaction(); builder.v2IsGlobalPauseEnabledCurrentEpoch(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function v2IsGlobalPauseEnabledNextEpoch( client: SuiGrpcClient, args: [string, bigint, string[]], ): Promise> { const tx = new Transaction(); builder.v2IsGlobalPauseEnabledNextEpoch(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function v2Remove( client: SuiGrpcClient, args: [string, bigint, string[], string], ): Promise> { const tx = new Transaction(); builder.v2Remove(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } } } export class derived_object extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("derived_object", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): derived_object { return new derived_object({ ...derived_object.DEFAULT_OPTIONS, ...options, }); } onEventClaimed( func: (event: derived_object.ClaimedInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, derived_object.ClaimedInstance >, eventFilter?: Omit, ): derived_object { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "derived_object::Claimed" }, handlerOptions, ); return this; } onEventDerivedObjectKey( func: ( event: derived_object.DerivedObjectKeyInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, derived_object.DerivedObjectKeyInstance >, eventFilter?: Omit, ): derived_object { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "derived_object::DerivedObjectKey" }, handlerOptions, ); return this; } } export namespace derived_object { export interface ClaimedStatus { fields: {}; variant: "Reserved"; } export namespace ClaimedStatus { export const TYPE_QNAME = "0x2::derived_object::ClaimedStatus"; const TYPE = new TypeDescriptor(ClaimedStatus.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface Claimed { pos0: object$.ID; } export namespace Claimed { export const TYPE_QNAME = "0x2::derived_object::Claimed"; const TYPE = new TypeDescriptor(Claimed.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type ClaimedInstance = TypedEventInstance & { data_decoded: Claimed; type_arguments: []; }; export interface DerivedObjectKey { pos0: T0; } export namespace DerivedObjectKey { export const TYPE_QNAME = "0x2::derived_object::DerivedObjectKey"; const TYPE = new TypeDescriptor>( DerivedObjectKey.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type DerivedObjectKeyInstance = TypedEventInstance< DerivedObjectKey > & { data_decoded: DerivedObjectKey; type_arguments: [string]; }; export namespace builder { export function claim( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::derived_object::claim", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function deriveAddress( tx: Transaction, args: [object$.ID | TransactionArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::derived_object::derive_address", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function exists( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::derived_object::exists", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function claim( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.claim(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], typeArguments, ); } export async function deriveAddress( client: SuiGrpcClient, args: [object$.ID, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.deriveAddress(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], typeArguments, ); } export async function exists( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.exists(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } } } export class display extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("display", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): display { return new display({ ...display.DEFAULT_OPTIONS, ...options }); } onEntryAdd( func: (call: display.AddPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): display { this.onEntryFunctionCall( func, { ...filter, function: "display::add", }, handlerOptions, ); return this; } onEntryAddMultiple( func: (call: display.AddMultiplePayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, display.AddMultiplePayload >, ): display { this.onEntryFunctionCall( func, { ...filter, function: "display::add_multiple", }, handlerOptions, ); return this; } onEntryCreateAndKeep( func: (call: display.CreateAndKeepPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, display.CreateAndKeepPayload >, ): display { this.onEntryFunctionCall( func, { ...filter, function: "display::create_and_keep", }, handlerOptions, ); return this; } onEntryEdit( func: (call: display.EditPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): display { this.onEntryFunctionCall( func, { ...filter, function: "display::edit", }, handlerOptions, ); return this; } onEntryRemove( func: (call: display.RemovePayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): display { this.onEntryFunctionCall( func, { ...filter, function: "display::remove", }, handlerOptions, ); return this; } onEntryUpdateVersion( func: (call: display.UpdateVersionPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, display.UpdateVersionPayload >, ): display { this.onEntryFunctionCall( func, { ...filter, function: "display::update_version", }, handlerOptions, ); return this; } onEventDisplayCreated( func: (event: display.DisplayCreatedInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, display.DisplayCreatedInstance >, eventFilter?: Omit, ): display { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "display::DisplayCreated" }, handlerOptions, ); return this; } onEventVersionUpdated( func: (event: display.VersionUpdatedInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, display.VersionUpdatedInstance >, eventFilter?: Omit, ): display { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "display::VersionUpdated" }, handlerOptions, ); return this; } } export namespace display { export interface Display { id: object$.UID; fields: vec_map.VecMap; version: number; } export namespace Display { export const TYPE_QNAME = "0x2::display::Display"; const TYPE = new TypeDescriptor>(Display.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface DisplayCreated { id: object$.ID; } export namespace DisplayCreated { export const TYPE_QNAME = "0x2::display::DisplayCreated"; const TYPE = new TypeDescriptor>( DisplayCreated.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type DisplayCreatedInstance = TypedEventInstance< DisplayCreated > & { data_decoded: DisplayCreated; type_arguments: [string]; }; export interface VersionUpdated { id: object$.ID; version: number; fields: vec_map.VecMap; } export namespace VersionUpdated { export const TYPE_QNAME = "0x2::display::VersionUpdated"; const TYPE = new TypeDescriptor>( VersionUpdated.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type VersionUpdatedInstance = TypedEventInstance< VersionUpdated > & { data_decoded: VersionUpdated; type_arguments: [string]; }; export namespace builder { export function add( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function addMultiple( tx: Transaction, args: [ string | TransactionObjectArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrVec(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::add_multiple", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function createAndKeep( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::create_and_keep", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroy( tx: Transaction, args: [display.Display | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::destroy", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function edit( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::edit", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function fields( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::fields", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isAuthorized( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::is_authorized", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function new$( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::new", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newWithFields( tx: Transaction, args: [ string | TransactionObjectArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrVec(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::new_with_fields", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function remove( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function updateVersion( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::update_version", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function version( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display::version", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function add( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.add(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function addMultiple( client: SuiGrpcClient, args: [string, string[], string[]], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.addMultiple(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function createAndKeep( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.createAndKeep(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function destroy( client: SuiGrpcClient, args: [display.Display], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroy(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function edit( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.edit(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function fields( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.fields(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::vec_map::VecMap<0x1::string::String, 0x1::string::String>"], typeArguments, ); } export async function isAuthorized( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isAuthorized(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function new$( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.new$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [display.Display] >(simulateRes, ["0x2::display::Display"], typeArguments); } export async function newWithFields( client: SuiGrpcClient, args: [string, string[], string[]], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.newWithFields(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [display.Display] >(simulateRes, ["0x2::display::Display"], typeArguments); } export async function remove( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function updateVersion( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.updateVersion(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function version( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.version(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U16"], typeArguments, ); } } export interface AddPayload extends TypedFunctionPayload<[string, string, string]> { arguments_decoded: [string, string, string]; type_arguments: [string]; } export interface AddMultiplePayload extends TypedFunctionPayload<[string, string[], string[]]> { arguments_decoded: [string, string[], string[]]; type_arguments: [string]; } export interface CreateAndKeepPayload extends TypedFunctionPayload<[string, string]> { arguments_decoded: [string, string]; type_arguments: [string]; } export interface EditPayload extends TypedFunctionPayload<[string, string, string]> { arguments_decoded: [string, string, string]; type_arguments: [string]; } export interface RemovePayload extends TypedFunctionPayload<[string, string]> { arguments_decoded: [string, string]; type_arguments: [string]; } export interface UpdateVersionPayload extends TypedFunctionPayload<[string]> { arguments_decoded: [string]; type_arguments: [string]; } } export class display_registry extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("display_registry", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): display_registry { return new display_registry({ ...display_registry.DEFAULT_OPTIONS, ...options, }); } onEntryDestroySystemMigrationCap( func: ( call: display_registry.DestroySystemMigrationCapPayload, ctx: SuiContext, ) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, display_registry.DestroySystemMigrationCapPayload >, ): display_registry { this.onEntryFunctionCall( func, { ...filter, function: "display_registry::destroy_system_migration_cap", }, handlerOptions, ); return this; } onEntryTransferMigrationCap( func: ( call: display_registry.TransferMigrationCapPayload, ctx: SuiContext, ) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, display_registry.TransferMigrationCapPayload >, ): display_registry { this.onEntryFunctionCall( func, { ...filter, function: "display_registry::transfer_migration_cap", }, handlerOptions, ); return this; } onEventDisplayKey( func: (event: display_registry.DisplayKeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, display_registry.DisplayKeyInstance >, eventFilter?: Omit, ): display_registry { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "display_registry::DisplayKey" }, handlerOptions, ); return this; } } export namespace display_registry { export interface Display { id: object$.UID; fields: vec_map.VecMap; cap_id: _0x1.option.Option; } export namespace Display { export const TYPE_QNAME = "0x2::display_registry::Display"; const TYPE = new TypeDescriptor>(Display.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface DisplayCap { id: object$.UID; } export namespace DisplayCap { export const TYPE_QNAME = "0x2::display_registry::DisplayCap"; const TYPE = new TypeDescriptor>(DisplayCap.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface DisplayKey { dummy_field: boolean; } export namespace DisplayKey { export const TYPE_QNAME = "0x2::display_registry::DisplayKey"; const TYPE = new TypeDescriptor>(DisplayKey.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type DisplayKeyInstance = TypedEventInstance> & { data_decoded: DisplayKey; type_arguments: [string]; }; export interface DisplayRegistry { id: object$.UID; } export namespace DisplayRegistry { export const TYPE_QNAME = "0x2::display_registry::DisplayRegistry"; const TYPE = new TypeDescriptor( DisplayRegistry.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface SystemMigrationCap { id: object$.UID; } export namespace SystemMigrationCap { export const TYPE_QNAME = "0x2::display_registry::SystemMigrationCap"; const TYPE = new TypeDescriptor( SystemMigrationCap.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function capId( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::cap_id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function claim( tx: Transaction, args: [ string | TransactionObjectArgument, display.Display | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::claim", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function claimWithPublisher( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::claim_with_publisher", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function clear( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::clear", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function deleteLegacy( tx: Transaction, args: [ string | TransactionObjectArgument, display.Display | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::delete_legacy", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroySystemMigrationCap( tx: Transaction, args: [display_registry.SystemMigrationCap | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::destroy_system_migration_cap", arguments: _args, }); } export function fields( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::fields", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function migrateV1ToV2( tx: Transaction, args: [ string | TransactionObjectArgument, display.Display | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::migrate_v1_to_v2", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function migrationCapReceiver( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::migration_cap_receiver", arguments: _args, }); } export function new$( tx: Transaction, args: [ string | TransactionObjectArgument, _0x1.internal.Permit | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::new", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newWithPublisher( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::new_with_publisher", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function set( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::set", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function share( tx: Transaction, args: [display_registry.Display | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::share", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function systemMigration( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrVec(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::system_migration", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function transferMigrationCap( tx: Transaction, args: [ display_registry.SystemMigrationCap | TransactionArgument, string | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::transfer_migration_cap", arguments: _args, }); } export function unset( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::display_registry::unset", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function capId( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.capId(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option<0x2::object::ID>"], typeArguments); } export async function claim( client: SuiGrpcClient, args: [string, display.Display], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.claim(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [display_registry.DisplayCap] >(simulateRes, ["0x2::display_registry::DisplayCap"], typeArguments); } export async function claimWithPublisher( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.claimWithPublisher(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [display_registry.DisplayCap] >(simulateRes, ["0x2::display_registry::DisplayCap"], typeArguments); } export async function clear( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.clear(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function deleteLegacy( client: SuiGrpcClient, args: [string, display.Display], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.deleteLegacy(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function fields( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.fields(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::vec_map::VecMap<0x1::string::String, 0x1::string::String>"], typeArguments, ); } export async function migrateV1ToV2( client: SuiGrpcClient, args: [string, display.Display], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults< [display_registry.Display, display_registry.DisplayCap] > > { const tx = new Transaction(); builder.migrateV1ToV2(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [display_registry.Display, display_registry.DisplayCap] >( simulateRes, [ "0x2::display_registry::Display", "0x2::display_registry::DisplayCap", ], typeArguments, ); } export async function migrationCapReceiver( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.migrationCapReceiver(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function new$( client: SuiGrpcClient, args: [string, _0x1.internal.Permit], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults< [display_registry.Display, display_registry.DisplayCap] > > { const tx = new Transaction(); builder.new$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [display_registry.Display, display_registry.DisplayCap] >( simulateRes, [ "0x2::display_registry::Display", "0x2::display_registry::DisplayCap", ], typeArguments, ); } export async function newWithPublisher( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults< [display_registry.Display, display_registry.DisplayCap] > > { const tx = new Transaction(); builder.newWithPublisher(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [display_registry.Display, display_registry.DisplayCap] >( simulateRes, [ "0x2::display_registry::Display", "0x2::display_registry::DisplayCap", ], typeArguments, ); } export async function set( client: SuiGrpcClient, args: [string, string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.set(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function share( client: SuiGrpcClient, args: [display_registry.Display], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.share(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function systemMigration( client: SuiGrpcClient, args: [string, string, string[], string[]], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.systemMigration(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function unset( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.unset(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } } export interface DestroySystemMigrationCapPayload extends TypedFunctionPayload<[display_registry.SystemMigrationCap]> { arguments_decoded: [display_registry.SystemMigrationCap]; type_arguments: []; } export interface TransferMigrationCapPayload extends TypedFunctionPayload< [display_registry.SystemMigrationCap, string] > { arguments_decoded: [display_registry.SystemMigrationCap, string]; type_arguments: []; } } export namespace dynamic_field { export interface Field { id: object$.UID; name: T0; value: T1; } export namespace Field { export const TYPE_QNAME = "0x2::dynamic_field::Field"; const TYPE = new TypeDescriptor>(Field.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, arg1: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0, arg1); } } export namespace builder { export function add( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function addChildObject( tx: Transaction, args: [string | TransactionArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::add_child_object", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function borrow( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrowChildObject( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::borrow_child_object", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function borrowChildObjectMut( tx: Transaction, args: [string | TransactionObjectArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::borrow_child_object_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function borrowMut( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::borrow_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function exists( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::exists", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function exists_( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::exists_", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function existsWithType( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::exists_with_type", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function fieldInfo( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::field_info", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function fieldInfoMut( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::field_info_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function hasChildObject( tx: Transaction, args: [string | TransactionArgument, string | TransactionArgument], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::has_child_object", arguments: _args, }); } export function hasChildObjectWithTy( tx: Transaction, args: [string | TransactionArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::has_child_object_with_ty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function hashTypeAndKey( tx: Transaction, args: [string | TransactionArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::hash_type_and_key", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function remove( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function removeChildObject( tx: Transaction, args: [string | TransactionArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::remove_child_object", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function removeIfExists( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::remove_if_exists", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function removeOpt( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::remove_opt", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function replace( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_field::replace", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } } export namespace view { export async function add( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.add(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function addChildObject( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.addChildObject(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function borrow( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function borrowChildObject( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowChildObject(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T0"], typeArguments, ); } export async function borrowChildObjectMut( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowChildObjectMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T0"], typeArguments, ); } export async function borrowMut( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function exists( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.exists(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function exists_( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.exists_(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function existsWithType( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.existsWithType(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function fieldInfo( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.fieldInfo(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [string, string] >(simulateRes, ["0x2::object::UID", "Address"], typeArguments); } export async function fieldInfoMut( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.fieldInfoMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [string, string] >(simulateRes, ["0x2::object::UID", "Address"], typeArguments); } export async function hasChildObject( client: SuiGrpcClient, args: [string, string], ): Promise> { const tx = new Transaction(); builder.hasChildObject(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function hasChildObjectWithTy( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.hasChildObjectWithTy(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function hashTypeAndKey( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.hashTypeAndKey(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], typeArguments, ); } export async function remove( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T1]>( simulateRes, ["T1"], typeArguments, ); } export async function removeChildObject( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.removeChildObject(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0]>( simulateRes, ["T0"], typeArguments, ); } export async function removeIfExists( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.removeIfExists(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } export async function removeOpt( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.removeOpt(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } export async function replace( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise]>> { const tx = new Transaction(); builder.replace(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } } } export class dynamic_object_field extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("dynamic_object_field", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): dynamic_object_field { return new dynamic_object_field({ ...dynamic_object_field.DEFAULT_OPTIONS, ...options, }); } onEventWrapper( func: ( event: dynamic_object_field.WrapperInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, dynamic_object_field.WrapperInstance >, eventFilter?: Omit, ): dynamic_object_field { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "dynamic_object_field::Wrapper" }, handlerOptions, ); return this; } } export namespace dynamic_object_field { export interface Wrapper { name: T0; } export namespace Wrapper { export const TYPE_QNAME = "0x2::dynamic_object_field::Wrapper"; const TYPE = new TypeDescriptor>(Wrapper.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type WrapperInstance = TypedEventInstance> & { data_decoded: Wrapper; type_arguments: [string]; }; export namespace builder { export function add( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrow( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrowMut( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::borrow_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function exists( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::exists", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function exists_( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::exists_", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function existsWithType( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::exists_with_type", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function id( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function internalAdd( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::internal_add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function internalBorrow( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::internal_borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function internalBorrowMut( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::internal_borrow_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function internalExistsWithType( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::internal_exists_with_type", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function internalRemove( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::internal_remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function remove( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function removeOpt( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::remove_opt", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function replace( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::dynamic_object_field::replace", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } } export namespace view { export async function add( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.add(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function borrow( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function borrowMut( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function exists( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.exists(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function exists_( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.exists_(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function existsWithType( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.existsWithType(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function id( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.id(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option<0x2::object::ID>"], typeArguments); } export async function internalAdd( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.internalAdd(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function internalBorrow( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.internalBorrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function internalBorrowMut( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.internalBorrowMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function internalExistsWithType( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.internalExistsWithType(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function internalRemove( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.internalRemove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T1]>( simulateRes, ["T1"], typeArguments, ); } export async function remove( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T1]>( simulateRes, ["T1"], typeArguments, ); } export async function removeOpt( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.removeOpt(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } export async function replace( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise]>> { const tx = new Transaction(); builder.replace(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } } } export namespace ecdsa_k1 { export namespace builder { export function decompressPubkey( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ecdsa_k1::decompress_pubkey", arguments: _args, }); } export function secp256k1Ecrecover( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, number | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPureU8(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ecdsa_k1::secp256k1_ecrecover", arguments: _args, }); } export function secp256k1Verify( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, number | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrPureU8(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ecdsa_k1::secp256k1_verify", arguments: _args, }); } } export namespace view { export async function decompressPubkey( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.decompressPubkey(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function secp256k1Ecrecover( client: SuiGrpcClient, args: [string, string, number], ): Promise> { const tx = new Transaction(); builder.secp256k1Ecrecover(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function secp256k1Verify( client: SuiGrpcClient, args: [string, string, string, number], ): Promise> { const tx = new Transaction(); builder.secp256k1Verify(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } } } export namespace ecdsa_r1 { export namespace builder { export function secp256r1Ecrecover( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, number | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPureU8(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ecdsa_r1::secp256r1_ecrecover", arguments: _args, }); } export function secp256r1Verify( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, number | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrPureU8(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ecdsa_r1::secp256r1_verify", arguments: _args, }); } } export namespace view { export async function secp256r1Ecrecover( client: SuiGrpcClient, args: [string, string, number], ): Promise> { const tx = new Transaction(); builder.secp256r1Ecrecover(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function secp256r1Verify( client: SuiGrpcClient, args: [string, string, string, number], ): Promise> { const tx = new Transaction(); builder.secp256r1Verify(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } } } export namespace ecvrf { export namespace builder { export function ecvrfVerify( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrObject(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ecvrf::ecvrf_verify", arguments: _args, }); } } export namespace view { export async function ecvrfVerify( client: SuiGrpcClient, args: [string, string, string, string], ): Promise> { const tx = new Transaction(); builder.ecvrfVerify(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } } } export namespace ed25519 { export namespace builder { export function ed25519Verify( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ed25519::ed25519_verify", arguments: _args, }); } } export namespace view { export async function ed25519Verify( client: SuiGrpcClient, args: [string, string, string], ): Promise> { const tx = new Transaction(); builder.ed25519Verify(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } } } export namespace event { export namespace builder { export function emit( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::event::emit", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function emitAuthenticated( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::event::emit_authenticated", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function emit( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.emit(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function emitAuthenticated( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.emitAuthenticated(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } } } export namespace funds_accumulator { export interface Withdrawal { owner: string; limit: bigint; } export namespace Withdrawal { export const TYPE_QNAME = "0x2::funds_accumulator::Withdrawal"; const TYPE = new TypeDescriptor>(Withdrawal.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function addImpl( tx: Transaction, args: [T0 | TransactionArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::funds_accumulator::add_impl", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function createWithdrawal( tx: Transaction, args: [string | TransactionArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); _args.push(transactionArgumentOrPureU256(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::funds_accumulator::create_withdrawal", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function redeem( tx: Transaction, args: [ funds_accumulator.Withdrawal | TransactionArgument, _0x1.internal.Permit | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::funds_accumulator::redeem", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function withdrawFromObject( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU256(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::funds_accumulator::withdraw_from_object", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function withdrawalJoin( tx: Transaction, args: [ string | TransactionObjectArgument, funds_accumulator.Withdrawal | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::funds_accumulator::withdrawal_join", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function withdrawalLimit( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::funds_accumulator::withdrawal_limit", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function withdrawalOwner( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::funds_accumulator::withdrawal_owner", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function withdrawalSplit( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU256(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::funds_accumulator::withdrawal_split", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function addImpl( client: SuiGrpcClient, args: [T0, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.addImpl(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function createWithdrawal( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.createWithdrawal(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [funds_accumulator.Withdrawal] >(simulateRes, ["0x2::funds_accumulator::Withdrawal"], typeArguments); } export async function redeem( client: SuiGrpcClient, args: [funds_accumulator.Withdrawal, _0x1.internal.Permit], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.redeem(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0]>( simulateRes, ["T0"], typeArguments, ); } export async function withdrawFromObject( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.withdrawFromObject(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [funds_accumulator.Withdrawal] >(simulateRes, ["0x2::funds_accumulator::Withdrawal"], typeArguments); } export async function withdrawalJoin( client: SuiGrpcClient, args: [string, funds_accumulator.Withdrawal], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.withdrawalJoin(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function withdrawalLimit( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.withdrawalLimit(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U256"], typeArguments, ); } export async function withdrawalOwner( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.withdrawalOwner(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], typeArguments, ); } export async function withdrawalSplit( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.withdrawalSplit(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [funds_accumulator.Withdrawal] >(simulateRes, ["0x2::funds_accumulator::Withdrawal"], typeArguments); } } } export class groth16 extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("groth16", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): groth16 { return new groth16({ ...groth16.DEFAULT_OPTIONS, ...options }); } onEventCurve( func: (event: groth16.CurveInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): groth16 { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "groth16::Curve" }, handlerOptions, ); return this; } onEventPreparedVerifyingKey( func: ( event: groth16.PreparedVerifyingKeyInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, groth16.PreparedVerifyingKeyInstance >, eventFilter?: Omit, ): groth16 { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "groth16::PreparedVerifyingKey" }, handlerOptions, ); return this; } onEventProofPoints( func: (event: groth16.ProofPointsInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, groth16.ProofPointsInstance >, eventFilter?: Omit, ): groth16 { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "groth16::ProofPoints" }, handlerOptions, ); return this; } onEventPublicProofInputs( func: (event: groth16.PublicProofInputsInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, groth16.PublicProofInputsInstance >, eventFilter?: Omit, ): groth16 { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "groth16::PublicProofInputs" }, handlerOptions, ); return this; } } export namespace groth16 { export interface Curve { id: number; } export namespace Curve { export const TYPE_QNAME = "0x2::groth16::Curve"; const TYPE = new TypeDescriptor(Curve.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type CurveInstance = TypedEventInstance & { data_decoded: Curve; type_arguments: []; }; export interface PreparedVerifyingKey { vk_gamma_abc_g1_bytes: number[]; alpha_g1_beta_g2_bytes: number[]; gamma_g2_neg_pc_bytes: number[]; delta_g2_neg_pc_bytes: number[]; } export namespace PreparedVerifyingKey { export const TYPE_QNAME = "0x2::groth16::PreparedVerifyingKey"; const TYPE = new TypeDescriptor( PreparedVerifyingKey.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export type PreparedVerifyingKeyInstance = TypedEventInstance & { data_decoded: PreparedVerifyingKey; type_arguments: []; }; export interface ProofPoints { bytes: number[]; } export namespace ProofPoints { export const TYPE_QNAME = "0x2::groth16::ProofPoints"; const TYPE = new TypeDescriptor(ProofPoints.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type ProofPointsInstance = TypedEventInstance & { data_decoded: ProofPoints; type_arguments: []; }; export interface PublicProofInputs { bytes: number[]; } export namespace PublicProofInputs { export const TYPE_QNAME = "0x2::groth16::PublicProofInputs"; const TYPE = new TypeDescriptor( PublicProofInputs.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export type PublicProofInputsInstance = TypedEventInstance & { data_decoded: PublicProofInputs; type_arguments: []; }; export namespace builder { export function bls12381( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::groth16::bls12381", arguments: _args, }); } export function bn254(tx: Transaction, args: []): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::groth16::bn254", arguments: _args, }); } export function prepareVerifyingKey( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::groth16::prepare_verifying_key", arguments: _args, }); } export function proofPointsFromBytes( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::groth16::proof_points_from_bytes", arguments: _args, }); } export function publicProofInputsFromBytes( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::groth16::public_proof_inputs_from_bytes", arguments: _args, }); } export function pvkFromBytes( tx: Transaction, args: [ (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); _args.push(transactionArgumentOrVec(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrVec(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::groth16::pvk_from_bytes", arguments: _args, }); } export function pvkToBytes( tx: Transaction, args: [groth16.PreparedVerifyingKey | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::groth16::pvk_to_bytes", arguments: _args, }); } export function verifyGroth16Proof( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrObject(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::groth16::verify_groth16_proof", arguments: _args, }); } } export namespace view { export async function bls12381( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.bls12381(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[groth16.Curve]>( simulateRes, ["0x2::groth16::Curve"], ); } export async function bn254( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.bn254(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[groth16.Curve]>( simulateRes, ["0x2::groth16::Curve"], ); } export async function prepareVerifyingKey( client: SuiGrpcClient, args: [string, string], ): Promise> { const tx = new Transaction(); builder.prepareVerifyingKey(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [groth16.PreparedVerifyingKey] >(simulateRes, ["0x2::groth16::PreparedVerifyingKey"]); } export async function proofPointsFromBytes( client: SuiGrpcClient, args: [string[]], ): Promise> { const tx = new Transaction(); builder.proofPointsFromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [groth16.ProofPoints] >(simulateRes, ["0x2::groth16::ProofPoints"]); } export async function publicProofInputsFromBytes( client: SuiGrpcClient, args: [string[]], ): Promise> { const tx = new Transaction(); builder.publicProofInputsFromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [groth16.PublicProofInputs] >(simulateRes, ["0x2::groth16::PublicProofInputs"]); } export async function pvkFromBytes( client: SuiGrpcClient, args: [string[], string[], string[], string[]], ): Promise> { const tx = new Transaction(); builder.pvkFromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [groth16.PreparedVerifyingKey] >(simulateRes, ["0x2::groth16::PreparedVerifyingKey"]); } export async function pvkToBytes( client: SuiGrpcClient, args: [groth16.PreparedVerifyingKey], ): Promise> { const tx = new Transaction(); builder.pvkToBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[][]]>( simulateRes, ["Vector>"], ); } export async function verifyGroth16Proof( client: SuiGrpcClient, args: [string, string, string, string], ): Promise> { const tx = new Transaction(); builder.verifyGroth16Proof(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } } } export class group_ops extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("group_ops", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): group_ops { return new group_ops({ ...group_ops.DEFAULT_OPTIONS, ...options }); } onEventElement( func: (event: group_ops.ElementInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): group_ops { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "group_ops::Element" }, handlerOptions, ); return this; } } export namespace group_ops { export interface Element { bytes: number[]; } export namespace Element { export const TYPE_QNAME = "0x2::group_ops::Element"; const TYPE = new TypeDescriptor>(Element.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type ElementInstance = TypedEventInstance> & { data_decoded: Element; type_arguments: [string]; }; export namespace builder { export function add( tx: Transaction, args: [ number | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function bytes( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::bytes", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function convert( tx: Transaction, args: [ number | TransactionArgument, number | TransactionArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::convert", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function div( tx: Transaction, args: [ number | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::div", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function equal( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::equal", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function fromBytes( tx: Transaction, args: [ number | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, boolean | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrVec(args[1], tx)); _args.push(transactionArgumentOrPureBool(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::from_bytes", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function hashTo( tx: Transaction, args: [number | TransactionArgument, string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::hash_to", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function mul( tx: Transaction, args: [ number | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::mul", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function multiScalarMultiplication( tx: Transaction, args: [ number | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::multi_scalar_multiplication", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function pairing( tx: Transaction, args: [ number | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::pairing", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function setAsPrefix( tx: Transaction, args: [ bigint | TransactionArgument, boolean | TransactionArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); _args.push(transactionArgumentOrPureBool(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::set_as_prefix", arguments: _args, }); } export function sub( tx: Transaction, args: [ number | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::sub", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function sum( tx: Transaction, args: [number | TransactionArgument, string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU8(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::group_ops::sum", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function add( client: SuiGrpcClient, args: [number, string, string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.add(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element"], typeArguments); } export async function bytes( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.bytes(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Vector"], typeArguments, ); } export async function convert( client: SuiGrpcClient, args: [number, number, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.convert(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element"], typeArguments); } export async function div( client: SuiGrpcClient, args: [number, string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.div(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element"], typeArguments); } export async function equal( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.equal(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function fromBytes( client: SuiGrpcClient, args: [number, string[], boolean], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.fromBytes(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element"], typeArguments); } export async function hashTo( client: SuiGrpcClient, args: [number, string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.hashTo(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element"], typeArguments); } export async function mul( client: SuiGrpcClient, args: [number, string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.mul(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element"], typeArguments); } export async function multiScalarMultiplication( client: SuiGrpcClient, args: [number, string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.multiScalarMultiplication(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element"], typeArguments); } export async function pairing( client: SuiGrpcClient, args: [number, string, string], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise]>> { const tx = new Transaction(); builder.pairing(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element"], typeArguments); } export async function setAsPrefix( client: SuiGrpcClient, args: [bigint, boolean, string], ): Promise> { const tx = new Transaction(); builder.setAsPrefix(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function sub( client: SuiGrpcClient, args: [number, string, string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.sub(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element"], typeArguments); } export async function sum( client: SuiGrpcClient, args: [number, string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.sum(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element"], typeArguments); } } } export namespace hash { export namespace builder { export function blake2b256( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::hash::blake2b256", arguments: _args, }); } export function keccak256( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::hash::keccak256", arguments: _args, }); } } export namespace view { export async function blake2b256( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.blake2b256(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function keccak256( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.keccak256(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } } } export namespace hex { export namespace builder { export function decode( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::hex::decode", arguments: _args, }); } export function encode( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::hex::encode", arguments: _args, }); } } export namespace view { export async function decode( client: SuiGrpcClient, args: [string[]], ): Promise> { const tx = new Transaction(); builder.decode(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function encode( client: SuiGrpcClient, args: [string[]], ): Promise> { const tx = new Transaction(); builder.encode(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } } } export namespace hmac { export namespace builder { export function hmacSha3256( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::hmac::hmac_sha3_256", arguments: _args, }); } } export namespace view { export async function hmacSha3256( client: SuiGrpcClient, args: [string, string], ): Promise> { const tx = new Transaction(); builder.hmacSha3256(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } } } export class kiosk extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("kiosk", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): kiosk { return new kiosk({ ...kiosk.DEFAULT_OPTIONS, ...options }); } onEntryDefault( func: (call: kiosk.DefaultPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): kiosk { this.onEntryFunctionCall( func, { ...filter, function: "kiosk::default", }, handlerOptions, ); return this; } onEventItem( func: (event: kiosk.ItemInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): kiosk { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "kiosk::Item" }, handlerOptions, ); return this; } onEventItemDelisted( func: (event: kiosk.ItemDelistedInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, kiosk.ItemDelistedInstance >, eventFilter?: Omit, ): kiosk { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "kiosk::ItemDelisted" }, handlerOptions, ); return this; } onEventItemListed( func: (event: kiosk.ItemListedInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): kiosk { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "kiosk::ItemListed" }, handlerOptions, ); return this; } onEventItemPurchased( func: (event: kiosk.ItemPurchasedInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, kiosk.ItemPurchasedInstance >, eventFilter?: Omit, ): kiosk { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "kiosk::ItemPurchased" }, handlerOptions, ); return this; } onEventListing( func: (event: kiosk.ListingInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): kiosk { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "kiosk::Listing" }, handlerOptions, ); return this; } onEventLock( func: (event: kiosk.LockInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): kiosk { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "kiosk::Lock" }, handlerOptions, ); return this; } } export namespace kiosk { export interface Borrow { kiosk_id: object$.ID; item_id: object$.ID; } export namespace Borrow { export const TYPE_QNAME = "0x2::kiosk::Borrow"; const TYPE = new TypeDescriptor(Borrow.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface Item { id: object$.ID; } export namespace Item { export const TYPE_QNAME = "0x2::kiosk::Item"; const TYPE = new TypeDescriptor(Item.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type ItemInstance = TypedEventInstance & { data_decoded: Item; type_arguments: []; }; export interface ItemDelisted { kiosk: object$.ID; id: object$.ID; } export namespace ItemDelisted { export const TYPE_QNAME = "0x2::kiosk::ItemDelisted"; const TYPE = new TypeDescriptor>(ItemDelisted.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type ItemDelistedInstance = TypedEventInstance> & { data_decoded: ItemDelisted; type_arguments: [string]; }; export interface ItemListed { kiosk: object$.ID; id: object$.ID; price: bigint; } export namespace ItemListed { export const TYPE_QNAME = "0x2::kiosk::ItemListed"; const TYPE = new TypeDescriptor>(ItemListed.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type ItemListedInstance = TypedEventInstance> & { data_decoded: ItemListed; type_arguments: [string]; }; export interface ItemPurchased { kiosk: object$.ID; id: object$.ID; price: bigint; } export namespace ItemPurchased { export const TYPE_QNAME = "0x2::kiosk::ItemPurchased"; const TYPE = new TypeDescriptor>( ItemPurchased.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type ItemPurchasedInstance = TypedEventInstance> & { data_decoded: ItemPurchased; type_arguments: [string]; }; export interface Kiosk { id: object$.UID; profits: balance.Balance; owner: string; item_count: number; allow_extensions: boolean; } export namespace Kiosk { export const TYPE_QNAME = "0x2::kiosk::Kiosk"; const TYPE = new TypeDescriptor(Kiosk.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface KioskOwnerCap { id: object$.UID; for: object$.ID; } export namespace KioskOwnerCap { export const TYPE_QNAME = "0x2::kiosk::KioskOwnerCap"; const TYPE = new TypeDescriptor(KioskOwnerCap.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface Listing { id: object$.ID; is_exclusive: boolean; } export namespace Listing { export const TYPE_QNAME = "0x2::kiosk::Listing"; const TYPE = new TypeDescriptor(Listing.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type ListingInstance = TypedEventInstance & { data_decoded: Listing; type_arguments: []; }; export interface Lock { id: object$.ID; } export namespace Lock { export const TYPE_QNAME = "0x2::kiosk::Lock"; const TYPE = new TypeDescriptor(Lock.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type LockInstance = TypedEventInstance & { data_decoded: Lock; type_arguments: []; }; export interface PurchaseCap { id: object$.UID; kiosk_id: object$.ID; item_id: object$.ID; min_price: bigint; } export namespace PurchaseCap { export const TYPE_QNAME = "0x2::kiosk::PurchaseCap"; const TYPE = new TypeDescriptor>(PurchaseCap.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function borrow( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, object$.ID | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function borrowMut( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, object$.ID | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::borrow_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function borrowVal( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, object$.ID | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::borrow_val", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function closeAndWithdraw( tx: Transaction, args: [ kiosk.Kiosk | TransactionArgument, kiosk.KioskOwnerCap | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::close_and_withdraw", arguments: _args, }); } export function default$( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::default", arguments: _args, }); } export function delist( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, object$.ID | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::delist", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function hasAccess( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::has_access", arguments: _args, }); } export function hasItem( tx: Transaction, args: [ string | TransactionObjectArgument, object$.ID | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::has_item", arguments: _args, }); } export function hasItemWithType( tx: Transaction, args: [ string | TransactionObjectArgument, object$.ID | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::has_item_with_type", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isListed( tx: Transaction, args: [ string | TransactionObjectArgument, object$.ID | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::is_listed", arguments: _args, }); } export function isListedExclusively( tx: Transaction, args: [ string | TransactionObjectArgument, object$.ID | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::is_listed_exclusively", arguments: _args, }); } export function isLocked( tx: Transaction, args: [ string | TransactionObjectArgument, object$.ID | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::is_locked", arguments: _args, }); } export function itemCount( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::item_count", arguments: _args, }); } export function kioskOwnerCapFor( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::kiosk_owner_cap_for", arguments: _args, }); } export function list( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, object$.ID | TransactionArgument, bigint | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPureU64(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::list", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function listWithPurchaseCap( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, object$.ID | TransactionArgument, bigint | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPureU64(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::list_with_purchase_cap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function lock( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, T0 | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::lock", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function lockInternal( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::lock_internal", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function new$(tx: Transaction, args: []): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::new", arguments: _args, }); } export function owner( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::owner", arguments: _args, }); } export function place( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, T0 | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::place", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function placeAndList( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, T0 | TransactionArgument, bigint | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPureU64(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::place_and_list", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function placeInternal( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::place_internal", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function profitsAmount( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::profits_amount", arguments: _args, }); } export function profitsMut( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::profits_mut", arguments: _args, }); } export function purchase( tx: Transaction, args: [ string | TransactionObjectArgument, object$.ID | TransactionArgument, coin.Coin | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::purchase", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function purchaseCapItem( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::purchase_cap_item", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function purchaseCapKiosk( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::purchase_cap_kiosk", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function purchaseCapMinPrice( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::purchase_cap_min_price", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function purchaseWithCap( tx: Transaction, args: [ string | TransactionObjectArgument, kiosk.PurchaseCap | TransactionArgument, coin.Coin | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::purchase_with_cap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function returnPurchaseCap( tx: Transaction, args: [ string | TransactionObjectArgument, kiosk.PurchaseCap | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::return_purchase_cap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function returnVal( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, kiosk.Borrow | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::return_val", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function setAllowExtensions( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, boolean | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPureBool(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::set_allow_extensions", arguments: _args, }); } export function setOwner( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::set_owner", arguments: _args, }); } export function setOwnerCustom( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPureAddress(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::set_owner_custom", arguments: _args, }); } export function take( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, object$.ID | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::take", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function uid( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::uid", arguments: _args, }); } export function uidMut( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::uid_mut", arguments: _args, }); } export function uidMutAsOwner( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::uid_mut_as_owner", arguments: _args, }); } export function uidMutInternal( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::uid_mut_internal", arguments: _args, }); } export function withdraw( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, _0x1.option.Option | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk::withdraw", arguments: _args, }); } } export namespace view { export async function borrow( client: SuiGrpcClient, args: [string, string, object$.ID], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T0"], typeArguments, ); } export async function borrowMut( client: SuiGrpcClient, args: [string, string, object$.ID], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T0"], typeArguments, ); } export async function borrowVal( client: SuiGrpcClient, args: [string, string, object$.ID], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowVal(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [T0, kiosk.Borrow] >(simulateRes, ["T0", "0x2::kiosk::Borrow"], typeArguments); } export async function closeAndWithdraw( client: SuiGrpcClient, args: [kiosk.Kiosk, kiosk.KioskOwnerCap], ): Promise]>> { const tx = new Transaction(); builder.closeAndWithdraw(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.Coin] >(simulateRes, ["0x2::coin::Coin<0x2::sui::SUI>"]); } export async function delist( client: SuiGrpcClient, args: [string, string, object$.ID], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.delist(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function hasAccess( client: SuiGrpcClient, args: [string, string], ): Promise> { const tx = new Transaction(); builder.hasAccess(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function hasItem( client: SuiGrpcClient, args: [string, object$.ID], ): Promise> { const tx = new Transaction(); builder.hasItem(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function hasItemWithType( client: SuiGrpcClient, args: [string, object$.ID], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.hasItemWithType(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function isListed( client: SuiGrpcClient, args: [string, object$.ID], ): Promise> { const tx = new Transaction(); builder.isListed(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function isListedExclusively( client: SuiGrpcClient, args: [string, object$.ID], ): Promise> { const tx = new Transaction(); builder.isListedExclusively(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function isLocked( client: SuiGrpcClient, args: [string, object$.ID], ): Promise> { const tx = new Transaction(); builder.isLocked(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function itemCount( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.itemCount(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U32"], ); } export async function kioskOwnerCapFor( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.kioskOwnerCapFor(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], ); } export async function list( client: SuiGrpcClient, args: [string, string, object$.ID, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.list(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function listWithPurchaseCap( client: SuiGrpcClient, args: [string, string, object$.ID, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.listWithPurchaseCap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [kiosk.PurchaseCap] >(simulateRes, ["0x2::kiosk::PurchaseCap"], typeArguments); } export async function lock( client: SuiGrpcClient, args: [string, string, string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.lock(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function lockInternal( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.lockInternal(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function new$( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.new$(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [kiosk.Kiosk, kiosk.KioskOwnerCap] >(simulateRes, ["0x2::kiosk::Kiosk", "0x2::kiosk::KioskOwnerCap"]); } export async function owner( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.owner(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function place( client: SuiGrpcClient, args: [string, string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.place(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function placeAndList( client: SuiGrpcClient, args: [string, string, T0, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.placeAndList(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function placeInternal( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.placeInternal(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function profitsAmount( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.profitsAmount(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function profitsMut( client: SuiGrpcClient, args: [string, string], ): Promise> { const tx = new Transaction(); builder.profitsMut(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::balance::Balance<0x2::sui::SUI>"], ); } export async function purchase( client: SuiGrpcClient, args: [string, object$.ID, coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[T0, transfer_policy.TransferRequest]> > { const tx = new Transaction(); builder.purchase(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [T0, transfer_policy.TransferRequest] >( simulateRes, ["T0", "0x2::transfer_policy::TransferRequest"], typeArguments, ); } export async function purchaseCapItem( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.purchaseCapItem(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], typeArguments, ); } export async function purchaseCapKiosk( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.purchaseCapKiosk(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], typeArguments, ); } export async function purchaseCapMinPrice( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.purchaseCapMinPrice(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function purchaseWithCap( client: SuiGrpcClient, args: [string, kiosk.PurchaseCap, coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[T0, transfer_policy.TransferRequest]> > { const tx = new Transaction(); builder.purchaseWithCap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [T0, transfer_policy.TransferRequest] >( simulateRes, ["T0", "0x2::transfer_policy::TransferRequest"], typeArguments, ); } export async function returnPurchaseCap( client: SuiGrpcClient, args: [string, kiosk.PurchaseCap], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.returnPurchaseCap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function returnVal( client: SuiGrpcClient, args: [string, T0, kiosk.Borrow], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.returnVal(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function setAllowExtensions( client: SuiGrpcClient, args: [string, string, boolean], ): Promise> { const tx = new Transaction(); builder.setAllowExtensions(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function setOwner( client: SuiGrpcClient, args: [string, string], ): Promise> { const tx = new Transaction(); builder.setOwner(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function setOwnerCustom( client: SuiGrpcClient, args: [string, string, string], ): Promise> { const tx = new Transaction(); builder.setOwnerCustom(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function take( client: SuiGrpcClient, args: [string, string, object$.ID], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.take(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0]>( simulateRes, ["T0"], typeArguments, ); } export async function uid( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.uid(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::object::UID"], ); } export async function uidMut( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.uidMut(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::object::UID"], ); } export async function uidMutAsOwner( client: SuiGrpcClient, args: [string, string], ): Promise> { const tx = new Transaction(); builder.uidMutAsOwner(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::object::UID"], ); } export async function uidMutInternal( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.uidMutInternal(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::object::UID"], ); } export async function withdraw( client: SuiGrpcClient, args: [string, string, _0x1.option.Option], ): Promise]>> { const tx = new Transaction(); builder.withdraw(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.Coin] >(simulateRes, ["0x2::coin::Coin<0x2::sui::SUI>"]); } } export interface DefaultPayload extends TypedFunctionPayload<[string]> { arguments_decoded: [string]; type_arguments: []; } } export class kiosk_extension extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("kiosk_extension", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): kiosk_extension { return new kiosk_extension({ ...kiosk_extension.DEFAULT_OPTIONS, ...options, }); } onEventExtensionKey( func: ( event: kiosk_extension.ExtensionKeyInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, kiosk_extension.ExtensionKeyInstance >, eventFilter?: Omit, ): kiosk_extension { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "kiosk_extension::ExtensionKey" }, handlerOptions, ); return this; } } export namespace kiosk_extension { export interface Extension { storage: bag.Bag; permissions: bigint; is_enabled: boolean; } export namespace Extension { export const TYPE_QNAME = "0x2::kiosk_extension::Extension"; const TYPE = new TypeDescriptor(Extension.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface ExtensionKey { dummy_field: boolean; } export namespace ExtensionKey { export const TYPE_QNAME = "0x2::kiosk_extension::ExtensionKey"; const TYPE = new TypeDescriptor>(ExtensionKey.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type ExtensionKeyInstance = TypedEventInstance> & { data_decoded: ExtensionKey; type_arguments: [string]; }; export namespace builder { export function add( tx: Transaction, args: [ T0 | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, bigint | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrPureU128(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function canLock( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::can_lock", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function canPlace( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::can_place", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function disable( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::disable", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function enable( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::enable", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isEnabled( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::is_enabled", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isInstalled( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::is_installed", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function lock( tx: Transaction, args: [ T0 | TransactionArgument, string | TransactionObjectArgument, T1 | TransactionArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrObject(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::lock", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function place( tx: Transaction, args: [ T0 | TransactionArgument, string | TransactionObjectArgument, T1 | TransactionArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrObject(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::place", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function remove( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function storage( tx: Transaction, args: [T0 | TransactionArgument, string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::storage", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function storageMut( tx: Transaction, args: [T0 | TransactionArgument, string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::kiosk_extension::storage_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function add( client: SuiGrpcClient, args: [T0, string, string, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.add(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function canLock( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.canLock(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function canPlace( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.canPlace(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function disable( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.disable(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function enable( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.enable(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function isEnabled( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isEnabled(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function isInstalled( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isInstalled(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function lock( client: SuiGrpcClient, args: [T0, string, T1, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.lock(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function place( client: SuiGrpcClient, args: [T0, string, T1, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.place(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function remove( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function storage( client: SuiGrpcClient, args: [T0, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.storage(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::bag::Bag"], typeArguments, ); } export async function storageMut( client: SuiGrpcClient, args: [T0, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.storageMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::bag::Bag"], typeArguments, ); } } } export namespace linked_table { export interface LinkedTable { id: object$.UID; size: bigint; head: _0x1.option.Option; tail: _0x1.option.Option; } export namespace LinkedTable { export const TYPE_QNAME = "0x2::linked_table::LinkedTable"; const TYPE = new TypeDescriptor>( LinkedTable.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, arg1: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0, arg1); } } export interface Node { prev: _0x1.option.Option; next: _0x1.option.Option; value: T1; } export namespace Node { export const TYPE_QNAME = "0x2::linked_table::Node"; const TYPE = new TypeDescriptor>(Node.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, arg1: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0, arg1); } } export namespace builder { export function back( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::back", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrow( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrowMut( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::borrow_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function contains( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::contains", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function destroyEmpty( tx: Transaction, args: [linked_table.LinkedTable | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::destroy_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function drop( tx: Transaction, args: [linked_table.LinkedTable | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::drop", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function front( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::front", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function isEmpty( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::is_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function length( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::length", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function new$( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::new", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function next( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::next", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function popBack( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::pop_back", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function popFront( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::pop_front", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function prev( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::prev", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function pushBack( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::push_back", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function pushFront( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::push_front", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function remove( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::linked_table::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } } export namespace view { export async function back( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.back(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::option::Option"], typeArguments, ); } export async function borrow( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function borrowMut( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function contains( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.contains(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function destroyEmpty( client: SuiGrpcClient, args: [linked_table.LinkedTable], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroyEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function drop( client: SuiGrpcClient, args: [linked_table.LinkedTable], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.drop(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function front( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.front(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::option::Option"], typeArguments, ); } export async function isEmpty( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function length( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.length(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function new$( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.new$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [linked_table.LinkedTable] >(simulateRes, ["0x2::linked_table::LinkedTable"], typeArguments); } export async function next( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.next(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::option::Option"], typeArguments, ); } export async function popBack( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.popBack(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0, T1]>( simulateRes, ["T0", "T1"], typeArguments, ); } export async function popFront( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.popFront(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0, T1]>( simulateRes, ["T0", "T1"], typeArguments, ); } export async function prev( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.prev(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::option::Option"], typeArguments, ); } export async function pushBack( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.pushBack(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function pushFront( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.pushFront(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function remove( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T1]>( simulateRes, ["T1"], typeArguments, ); } } } export namespace math { export namespace builder { export function diff( tx: Transaction, args: [bigint | TransactionArgument, bigint | TransactionArgument], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::math::diff", arguments: _args, }); } export function divideAndRoundUp( tx: Transaction, args: [bigint | TransactionArgument, bigint | TransactionArgument], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::math::divide_and_round_up", arguments: _args, }); } export function max( tx: Transaction, args: [bigint | TransactionArgument, bigint | TransactionArgument], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::math::max", arguments: _args, }); } export function min( tx: Transaction, args: [bigint | TransactionArgument, bigint | TransactionArgument], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::math::min", arguments: _args, }); } export function pow( tx: Transaction, args: [bigint | TransactionArgument, number | TransactionArgument], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::math::pow", arguments: _args, }); } export function sqrt( tx: Transaction, args: [bigint | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::math::sqrt", arguments: _args, }); } export function sqrtU128( tx: Transaction, args: [bigint | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU128(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::math::sqrt_u128", arguments: _args, }); } } export namespace view { export async function diff( client: SuiGrpcClient, args: [bigint, bigint], ): Promise> { const tx = new Transaction(); builder.diff(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function divideAndRoundUp( client: SuiGrpcClient, args: [bigint, bigint], ): Promise> { const tx = new Transaction(); builder.divideAndRoundUp(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function max( client: SuiGrpcClient, args: [bigint, bigint], ): Promise> { const tx = new Transaction(); builder.max(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function min( client: SuiGrpcClient, args: [bigint, bigint], ): Promise> { const tx = new Transaction(); builder.min(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function pow( client: SuiGrpcClient, args: [bigint, number], ): Promise> { const tx = new Transaction(); builder.pow(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function sqrt( client: SuiGrpcClient, args: [bigint], ): Promise> { const tx = new Transaction(); builder.sqrt(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function sqrtU128( client: SuiGrpcClient, args: [bigint], ): Promise> { const tx = new Transaction(); builder.sqrtU128(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U128"], ); } } } export class nitro_attestation extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("nitro_attestation", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): nitro_attestation { return new nitro_attestation({ ...nitro_attestation.DEFAULT_OPTIONS, ...options, }); } onEntryLoadNitroAttestation( func: ( call: nitro_attestation.LoadNitroAttestationPayload, ctx: SuiContext, ) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, nitro_attestation.LoadNitroAttestationPayload >, ): nitro_attestation { this.onEntryFunctionCall( func, { ...filter, function: "nitro_attestation::load_nitro_attestation", }, handlerOptions, ); return this; } } export namespace nitro_attestation { export interface NitroAttestationDocument { module_id: number[]; timestamp: bigint; digest: number[]; pcrs: nitro_attestation.PCREntry[]; public_key: _0x1.option.Option; user_data: _0x1.option.Option; nonce: _0x1.option.Option; } export namespace NitroAttestationDocument { export const TYPE_QNAME = "0x2::nitro_attestation::NitroAttestationDocument"; const TYPE = new TypeDescriptor( NitroAttestationDocument.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface PCREntry { index: number; value: number[]; } export namespace PCREntry { export const TYPE_QNAME = "0x2::nitro_attestation::PCREntry"; const TYPE = new TypeDescriptor(PCREntry.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function digest( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::nitro_attestation::digest", arguments: _args, }); } export function index( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::nitro_attestation::index", arguments: _args, }); } export function loadNitroAttestation( tx: Transaction, args: [ (string | TransactionObjectArgument)[] | TransactionArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::nitro_attestation::load_nitro_attestation", arguments: _args, }); } export function moduleId( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::nitro_attestation::module_id", arguments: _args, }); } export function nonce( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::nitro_attestation::nonce", arguments: _args, }); } export function pcrs( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::nitro_attestation::pcrs", arguments: _args, }); } export function publicKey( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::nitro_attestation::public_key", arguments: _args, }); } export function timestamp( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::nitro_attestation::timestamp", arguments: _args, }); } export function userData( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::nitro_attestation::user_data", arguments: _args, }); } export function value( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::nitro_attestation::value", arguments: _args, }); } } export namespace view { export async function digest( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.digest(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Vector"], ); } export async function index( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.index(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], ); } export async function moduleId( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.moduleId(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Vector"], ); } export async function nonce( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.nonce(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::option::Option>"], ); } export async function pcrs( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.pcrs(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Vector<0x2::nitro_attestation::PCREntry>"], ); } export async function publicKey( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.publicKey(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::option::Option>"], ); } export async function timestamp( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.timestamp(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["U64"], ); } export async function userData( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.userData(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::option::Option>"], ); } export async function value( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.value(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Vector"], ); } } export interface LoadNitroAttestationPayload extends TypedFunctionPayload<[number[], string]> { arguments_decoded: [number[], string]; type_arguments: []; } } export namespace object$ { export type ID = string; export namespace ID { export const TYPE_QNAME = "0x2::object::ID"; const TYPE = new TypeDescriptor(ID.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface UID { id: object$.ID; } export namespace UID { export const TYPE_QNAME = "0x2::object::UID"; const TYPE = new TypeDescriptor(UID.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function addressAliasState( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::address_alias_state", arguments: _args, }); } export function authenticatorState( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::authenticator_state", arguments: _args, }); } export function borrowId( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::borrow_id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function clock(tx: Transaction, args: []): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::clock", arguments: _args, }); } export function delete$( tx: Transaction, args: [object$.UID | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::delete", arguments: _args, }); } export function id( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function idAddress( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::id_address", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function idBytes( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::id_bytes", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function idFromAddress( tx: Transaction, args: [string | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::id_from_address", arguments: _args, }); } export function idFromBytes( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::id_from_bytes", arguments: _args, }); } export function idToAddress( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::id_to_address", arguments: _args, }); } export function idToBytes( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::id_to_bytes", arguments: _args, }); } export function new$(tx: Transaction, args: []): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::new", arguments: _args, }); } export function newUidFromHash( tx: Transaction, args: [string | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::new_uid_from_hash", arguments: _args, }); } export function randomnessState( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::randomness_state", arguments: _args, }); } export function suiAccumulatorRootAddress( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::sui_accumulator_root_address", arguments: _args, }); } export function suiAccumulatorRootObjectId( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::sui_accumulator_root_object_id", arguments: _args, }); } export function suiCoinRegistryAddress( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::sui_coin_registry_address", arguments: _args, }); } export function suiCoinRegistryObjectId( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::sui_coin_registry_object_id", arguments: _args, }); } export function suiDenyListObjectId( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::sui_deny_list_object_id", arguments: _args, }); } export function suiDisplayRegistryAddress( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::sui_display_registry_address", arguments: _args, }); } export function suiDisplayRegistryObjectId( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object::sui_display_registry_object_id", arguments: _args, }); } export function uidAsInner( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::uid_as_inner", arguments: _args, }); } export function uidToAddress( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::uid_to_address", arguments: _args, }); } export function uidToBytes( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::uid_to_bytes", arguments: _args, }); } export function uidToInner( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object::uid_to_inner", arguments: _args, }); } } export namespace view { export async function addressAliasState( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.addressAliasState(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], ); } export async function authenticatorState( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.authenticatorState(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], ); } export async function borrowId( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowId(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::object::ID"], typeArguments, ); } export async function clock( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.clock(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], ); } export async function delete$( client: SuiGrpcClient, args: [object$.UID], ): Promise> { const tx = new Transaction(); builder.delete$(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function id( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.id(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], typeArguments, ); } export async function idAddress( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.idAddress(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], typeArguments, ); } export async function idBytes( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.idBytes(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], typeArguments, ); } export async function idFromAddress( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.idFromAddress(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], ); } export async function idFromBytes( client: SuiGrpcClient, args: [string[]], ): Promise> { const tx = new Transaction(); builder.idFromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], ); } export async function idToAddress( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.idToAddress(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function idToBytes( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.idToBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function new$( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.new$(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], ); } export async function newUidFromHash( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.newUidFromHash(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], ); } export async function randomnessState( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.randomnessState(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], ); } export async function suiAccumulatorRootAddress( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.suiAccumulatorRootAddress(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function suiAccumulatorRootObjectId( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.suiAccumulatorRootObjectId(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], ); } export async function suiCoinRegistryAddress( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.suiCoinRegistryAddress(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function suiCoinRegistryObjectId( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.suiCoinRegistryObjectId(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], ); } export async function suiDenyListObjectId( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.suiDenyListObjectId(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], ); } export async function suiDisplayRegistryAddress( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.suiDisplayRegistryAddress(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function suiDisplayRegistryObjectId( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.suiDisplayRegistryObjectId(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.UID]>( simulateRes, ["0x2::object::UID"], ); } export async function uidAsInner( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.uidAsInner(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::object::ID"], ); } export async function uidToAddress( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.uidToAddress(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function uidToBytes( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.uidToBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function uidToInner( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.uidToInner(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], ); } } } export namespace object_bag { export interface ObjectBag { id: object$.UID; size: bigint; } export namespace ObjectBag { export const TYPE_QNAME = "0x2::object_bag::ObjectBag"; const TYPE = new TypeDescriptor(ObjectBag.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function add( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrow( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrowMut( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::borrow_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function contains( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::contains", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function containsWithType( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::contains_with_type", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function destroyEmpty( tx: Transaction, args: [object_bag.ObjectBag | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::destroy_empty", arguments: _args, }); } export function isEmpty( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::is_empty", arguments: _args, }); } export function length( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::length", arguments: _args, }); } export function new$(tx: Transaction, args: []): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::new", arguments: _args, }); } export function remove( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function valueId( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_bag::value_id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function add( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.add(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function borrow( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function borrowMut( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function contains( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.contains(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function containsWithType( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.containsWithType(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function destroyEmpty( client: SuiGrpcClient, args: [object_bag.ObjectBag], ): Promise> { const tx = new Transaction(); builder.destroyEmpty(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function isEmpty( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.isEmpty(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function length( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.length(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function new$( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.new$(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [object_bag.ObjectBag] >(simulateRes, ["0x2::object_bag::ObjectBag"]); } export async function remove( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T1]>( simulateRes, ["T1"], typeArguments, ); } export async function valueId( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.valueId(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option<0x2::object::ID>"], typeArguments); } } } export namespace object_table { export interface ObjectTable { id: object$.UID; size: bigint; } export namespace ObjectTable { export const TYPE_QNAME = "0x2::object_table::ObjectTable"; const TYPE = new TypeDescriptor>( ObjectTable.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, arg1: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0, arg1); } } export namespace builder { export function add( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_table::add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrow( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_table::borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrowMut( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_table::borrow_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function contains( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_table::contains", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function destroyEmpty( tx: Transaction, args: [object_table.ObjectTable | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_table::destroy_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function isEmpty( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_table::is_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function length( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_table::length", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function new$( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::object_table::new", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function remove( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_table::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function valueId( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::object_table::value_id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } } export namespace view { export async function add( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.add(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function borrow( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function borrowMut( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function contains( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.contains(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function destroyEmpty( client: SuiGrpcClient, args: [object_table.ObjectTable], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroyEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function isEmpty( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function length( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.length(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function new$( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.new$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [object_table.ObjectTable] >(simulateRes, ["0x2::object_table::ObjectTable"], typeArguments); } export async function remove( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T1]>( simulateRes, ["T1"], typeArguments, ); } export async function valueId( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.valueId(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option<0x2::object::ID>"], typeArguments); } } } export class package$ extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("package", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): package$ { return new package$({ ...package$.DEFAULT_OPTIONS, ...options }); } onEntryMakeImmutable( func: (call: package$.MakeImmutablePayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, package$.MakeImmutablePayload >, ): package$ { this.onEntryFunctionCall( func, { ...filter, function: "package::make_immutable", }, handlerOptions, ); return this; } onEntryOnlyAdditiveUpgrades( func: (call: package$.OnlyAdditiveUpgradesPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, package$.OnlyAdditiveUpgradesPayload >, ): package$ { this.onEntryFunctionCall( func, { ...filter, function: "package::only_additive_upgrades", }, handlerOptions, ); return this; } onEntryOnlyDepUpgrades( func: (call: package$.OnlyDepUpgradesPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, package$.OnlyDepUpgradesPayload >, ): package$ { this.onEntryFunctionCall( func, { ...filter, function: "package::only_dep_upgrades", }, handlerOptions, ); return this; } } export namespace package$ { export interface Publisher { id: object$.UID; package: _0x1.ascii.String; module_name: _0x1.ascii.String; } export namespace Publisher { export const TYPE_QNAME = "0x2::package::Publisher"; const TYPE = new TypeDescriptor(Publisher.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface UpgradeCap { id: object$.UID; package: object$.ID; version: bigint; policy: number; } export namespace UpgradeCap { export const TYPE_QNAME = "0x2::package::UpgradeCap"; const TYPE = new TypeDescriptor(UpgradeCap.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface UpgradeReceipt { cap: object$.ID; package: object$.ID; } export namespace UpgradeReceipt { export const TYPE_QNAME = "0x2::package::UpgradeReceipt"; const TYPE = new TypeDescriptor(UpgradeReceipt.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface UpgradeTicket { cap: object$.ID; package: object$.ID; policy: number; digest: number[]; } export namespace UpgradeTicket { export const TYPE_QNAME = "0x2::package::UpgradeTicket"; const TYPE = new TypeDescriptor(UpgradeTicket.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function additivePolicy( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::package::additive_policy", arguments: _args, }); } export function authorizeUpgrade( tx: Transaction, args: [ string | TransactionObjectArgument, number | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::authorize_upgrade", arguments: _args, }); } export function burnPublisher( tx: Transaction, args: [package$.Publisher | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::burn_publisher", arguments: _args, }); } export function claim( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::claim", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function claimAndKeep( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::claim_and_keep", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function commitUpgrade( tx: Transaction, args: [ string | TransactionObjectArgument, package$.UpgradeReceipt | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::commit_upgrade", arguments: _args, }); } export function compatiblePolicy( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::package::compatible_policy", arguments: _args, }); } export function depOnlyPolicy( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::package::dep_only_policy", arguments: _args, }); } export function fromModule( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::from_module", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function fromPackage( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::from_package", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function makeImmutable( tx: Transaction, args: [package$.UpgradeCap | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::make_immutable", arguments: _args, }); } export function onlyAdditiveUpgrades( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::only_additive_upgrades", arguments: _args, }); } export function onlyDepUpgrades( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::only_dep_upgrades", arguments: _args, }); } export function publishedModule( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::published_module", arguments: _args, }); } export function publishedPackage( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::published_package", arguments: _args, }); } export function receiptCap( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::receipt_cap", arguments: _args, }); } export function receiptPackage( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::receipt_package", arguments: _args, }); } export function ticketDigest( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::ticket_digest", arguments: _args, }); } export function ticketPackage( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::ticket_package", arguments: _args, }); } export function ticketPolicy( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::ticket_policy", arguments: _args, }); } export function upgradePackage( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::upgrade_package", arguments: _args, }); } export function upgradePolicy( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::upgrade_policy", arguments: _args, }); } export function version( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::package::version", arguments: _args, }); } } export namespace view { export async function additivePolicy( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.additivePolicy(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], ); } export async function authorizeUpgrade( client: SuiGrpcClient, args: [string, number, string[]], ): Promise> { const tx = new Transaction(); builder.authorizeUpgrade(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [package$.UpgradeTicket] >(simulateRes, ["0x2::package::UpgradeTicket"]); } export async function burnPublisher( client: SuiGrpcClient, args: [package$.Publisher], ): Promise> { const tx = new Transaction(); builder.burnPublisher(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function claim( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.claim(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [package$.Publisher] >(simulateRes, ["0x2::package::Publisher"], typeArguments); } export async function claimAndKeep( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.claimAndKeep(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function commitUpgrade( client: SuiGrpcClient, args: [string, package$.UpgradeReceipt], ): Promise> { const tx = new Transaction(); builder.commitUpgrade(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function compatiblePolicy( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.compatiblePolicy(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], ); } export async function depOnlyPolicy( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.depOnlyPolicy(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], ); } export async function fromModule( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.fromModule(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function fromPackage( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.fromPackage(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function makeImmutable( client: SuiGrpcClient, args: [package$.UpgradeCap], ): Promise> { const tx = new Transaction(); builder.makeImmutable(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function onlyAdditiveUpgrades( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.onlyAdditiveUpgrades(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function onlyDepUpgrades( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.onlyDepUpgrades(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function publishedModule( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.publishedModule(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::ascii::String"], ); } export async function publishedPackage( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.publishedPackage(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::ascii::String"], ); } export async function receiptCap( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.receiptCap(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], ); } export async function receiptPackage( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.receiptPackage(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], ); } export async function ticketDigest( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.ticketDigest(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Vector"], ); } export async function ticketPackage( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.ticketPackage(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], ); } export async function ticketPolicy( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.ticketPolicy(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], ); } export async function upgradePackage( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.upgradePackage(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], ); } export async function upgradePolicy( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.upgradePolicy(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], ); } export async function version( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.version(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } } export interface MakeImmutablePayload extends TypedFunctionPayload<[package$.UpgradeCap]> { arguments_decoded: [package$.UpgradeCap]; type_arguments: []; } export interface OnlyAdditiveUpgradesPayload extends TypedFunctionPayload<[string]> { arguments_decoded: [string]; type_arguments: []; } export interface OnlyDepUpgradesPayload extends TypedFunctionPayload<[string]> { arguments_decoded: [string]; type_arguments: []; } } export class party extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("party", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): party { return new party({ ...party.DEFAULT_OPTIONS, ...options }); } onEventParty( func: (event: party.PartyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): party { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "party::Party" }, handlerOptions, ); return this; } onEventPermissions( func: (event: party.PermissionsInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): party { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "party::Permissions" }, handlerOptions, ); return this; } } export namespace party { export interface Party { default: party.Permissions; members: vec_map.VecMap; } export namespace Party { export const TYPE_QNAME = "0x2::party::Party"; const TYPE = new TypeDescriptor(Party.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type PartyInstance = TypedEventInstance & { data_decoded: Party; type_arguments: []; }; export interface Permissions { pos0: bigint; } export namespace Permissions { export const TYPE_QNAME = "0x2::party::Permissions"; const TYPE = new TypeDescriptor(Permissions.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type PermissionsInstance = TypedEventInstance & { data_decoded: Permissions; type_arguments: []; }; export namespace builder { export function intoNative( tx: Transaction, args: [party.Party | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::party::into_native", arguments: _args, }); } export function isSingleOwner( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::party::is_single_owner", arguments: _args, }); } export function singleOwner( tx: Transaction, args: [string | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::party::single_owner", arguments: _args, }); } } export namespace view { export async function intoNative( client: SuiGrpcClient, args: [party.Party], ): Promise> { const tx = new Transaction(); builder.intoNative(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [bigint, string[], bigint[]] >(simulateRes, ["U64", "Vector
", "Vector"]); } export async function isSingleOwner( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.isSingleOwner(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function singleOwner( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.singleOwner(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[party.Party]>( simulateRes, ["0x2::party::Party"], ); } } } export class pay extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("pay", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): pay { return new pay({ ...pay.DEFAULT_OPTIONS, ...options }); } onEntryDivideAndKeep( func: (call: pay.DivideAndKeepPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): pay { this.onEntryFunctionCall( func, { ...filter, function: "pay::divide_and_keep", }, handlerOptions, ); return this; } onEntryJoin( func: (call: pay.JoinPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): pay { this.onEntryFunctionCall( func, { ...filter, function: "pay::join", }, handlerOptions, ); return this; } onEntryJoinVec( func: (call: pay.JoinVecPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): pay { this.onEntryFunctionCall( func, { ...filter, function: "pay::join_vec", }, handlerOptions, ); return this; } onEntryJoinVecAndTransfer( func: (call: pay.JoinVecAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, pay.JoinVecAndTransferPayload >, ): pay { this.onEntryFunctionCall( func, { ...filter, function: "pay::join_vec_and_transfer", }, handlerOptions, ); return this; } onEntrySplit( func: (call: pay.SplitPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): pay { this.onEntryFunctionCall( func, { ...filter, function: "pay::split", }, handlerOptions, ); return this; } onEntrySplitAndTransfer( func: (call: pay.SplitAndTransferPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, pay.SplitAndTransferPayload >, ): pay { this.onEntryFunctionCall( func, { ...filter, function: "pay::split_and_transfer", }, handlerOptions, ); return this; } onEntrySplitVec( func: (call: pay.SplitVecPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): pay { this.onEntryFunctionCall( func, { ...filter, function: "pay::split_vec", }, handlerOptions, ); return this; } } export namespace pay { export namespace builder { export function divideAndKeep( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::pay::divide_and_keep", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function join( tx: Transaction, args: [ string | TransactionObjectArgument, coin.Coin | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::pay::join", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function joinVec( tx: Transaction, args: [ string | TransactionObjectArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrVec(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::pay::join_vec", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function joinVecAndTransfer( tx: Transaction, args: [ (string | TransactionObjectArgument)[] | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::pay::join_vec_and_transfer", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function keep( tx: Transaction, args: [coin.Coin | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::pay::keep", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function split( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::pay::split", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function splitAndTransfer( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrPureAddress(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::pay::split_and_transfer", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function splitVec( tx: Transaction, args: [ string | TransactionObjectArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrVec(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::pay::split_vec", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function divideAndKeep( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.divideAndKeep(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function join( client: SuiGrpcClient, args: [string, coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.join(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function joinVec( client: SuiGrpcClient, args: [string, string[]], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.joinVec(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function joinVecAndTransfer( client: SuiGrpcClient, args: [string[], string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.joinVecAndTransfer(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function keep( client: SuiGrpcClient, args: [coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.keep(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function split( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.split(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function splitAndTransfer( client: SuiGrpcClient, args: [string, bigint, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.splitAndTransfer(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function splitVec( client: SuiGrpcClient, args: [string, string[]], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.splitVec(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } } export interface DivideAndKeepPayload extends TypedFunctionPayload<[string, bigint, string]> { arguments_decoded: [string, bigint, string]; type_arguments: [string]; } export interface JoinPayload extends TypedFunctionPayload<[string, coin.Coin]> { arguments_decoded: [string, coin.Coin]; type_arguments: [string]; } export interface JoinVecPayload extends TypedFunctionPayload<[string, coin.Coin[]]> { arguments_decoded: [string, coin.Coin[]]; type_arguments: [string]; } export interface JoinVecAndTransferPayload extends TypedFunctionPayload<[coin.Coin[], string]> { arguments_decoded: [coin.Coin[], string]; type_arguments: [string]; } export interface SplitPayload extends TypedFunctionPayload<[string, bigint, string]> { arguments_decoded: [string, bigint, string]; type_arguments: [string]; } export interface SplitAndTransferPayload extends TypedFunctionPayload<[string, bigint, string, string]> { arguments_decoded: [string, bigint, string, string]; type_arguments: [string]; } export interface SplitVecPayload extends TypedFunctionPayload<[string, bigint[], string]> { arguments_decoded: [string, bigint[], string]; type_arguments: [string]; } } export namespace poseidon { export namespace builder { export function poseidonBn254( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::poseidon::poseidon_bn254", arguments: _args, }); } } export namespace view { export async function poseidonBn254( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.poseidonBn254(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U256"], ); } } } export namespace priority_queue { export interface Entry { priority: bigint; value: T0; } export namespace Entry { export const TYPE_QNAME = "0x2::priority_queue::Entry"; const TYPE = new TypeDescriptor>(Entry.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface PriorityQueue { entries: priority_queue.Entry[]; } export namespace PriorityQueue { export const TYPE_QNAME = "0x2::priority_queue::PriorityQueue"; const TYPE = new TypeDescriptor>( PriorityQueue.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function createEntries( tx: Transaction, args: [ (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); _args.push(transactionArgumentOrVec(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::priority_queue::create_entries", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function insert( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, T0 | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::priority_queue::insert", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function new$( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::priority_queue::new", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newEntry( tx: Transaction, args: [bigint | TransactionArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::priority_queue::new_entry", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function popMax( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::priority_queue::pop_max", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function priorities( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::priority_queue::priorities", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function createEntries( client: SuiGrpcClient, args: [string[], string[]], typeArguments: [TypeDescriptor | string], ): Promise[]]>> { const tx = new Transaction(); builder.createEntries(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [priority_queue.Entry[]] >(simulateRes, ["Vector<0x2::priority_queue::Entry>"], typeArguments); } export async function insert( client: SuiGrpcClient, args: [string, bigint, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.insert(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function new$( client: SuiGrpcClient, args: [string[]], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.new$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [priority_queue.PriorityQueue] >(simulateRes, ["0x2::priority_queue::PriorityQueue"], typeArguments); } export async function newEntry( client: SuiGrpcClient, args: [bigint, T0], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.newEntry(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [priority_queue.Entry] >(simulateRes, ["0x2::priority_queue::Entry"], typeArguments); } export async function popMax( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.popMax(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint, T0]>( simulateRes, ["U64", "T0"], typeArguments, ); } export async function priorities( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.priorities(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint[]]>( simulateRes, ["Vector"], typeArguments, ); } } } export namespace protocol_config { export namespace builder { export function isFeatureEnabled( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::protocol_config::is_feature_enabled", arguments: _args, }); } } export namespace view { export async function isFeatureEnabled( client: SuiGrpcClient, args: [string[]], ): Promise> { const tx = new Transaction(); builder.isFeatureEnabled(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } } } export namespace prover { export namespace builder {} export namespace view {} } export namespace random { export interface Random { id: object$.UID; inner: versioned.Versioned; } export namespace Random { export const TYPE_QNAME = "0x2::random::Random"; const TYPE = new TypeDescriptor(Random.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface RandomGenerator { seed: number[]; counter: number; buffer: number[]; } export namespace RandomGenerator { export const TYPE_QNAME = "0x2::random::RandomGenerator"; const TYPE = new TypeDescriptor( RandomGenerator.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface RandomInner { version: bigint; epoch: bigint; randomness_round: bigint; random_bytes: number[]; } export namespace RandomInner { export const TYPE_QNAME = "0x2::random::RandomInner"; const TYPE = new TypeDescriptor(RandomInner.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function generateBool( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_bool", arguments: _args, }); } export function generateBytes( tx: Transaction, args: [string | TransactionObjectArgument, number | TransactionArgument], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU16(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_bytes", arguments: _args, }); } export function generateU128( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u128", arguments: _args, }); } export function generateU128InRange( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, bigint | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU128(args[1], tx)); _args.push(transactionArgumentOrPureU128(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u128_in_range", arguments: _args, }); } export function generateU16( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u16", arguments: _args, }); } export function generateU16InRange( tx: Transaction, args: [ string | TransactionObjectArgument, number | TransactionArgument, number | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU16(args[1], tx)); _args.push(transactionArgumentOrPureU16(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u16_in_range", arguments: _args, }); } export function generateU256( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u256", arguments: _args, }); } export function generateU32( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u32", arguments: _args, }); } export function generateU32InRange( tx: Transaction, args: [ string | TransactionObjectArgument, number | TransactionArgument, number | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU32(args[1], tx)); _args.push(transactionArgumentOrPureU32(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u32_in_range", arguments: _args, }); } export function generateU64( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u64", arguments: _args, }); } export function generateU64InRange( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, bigint | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrPureU64(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u64_in_range", arguments: _args, }); } export function generateU8( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u8", arguments: _args, }); } export function generateU8InRange( tx: Transaction, args: [ string | TransactionObjectArgument, number | TransactionArgument, number | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); _args.push(transactionArgumentOrPureU8(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::generate_u8_in_range", arguments: _args, }); } export function newGenerator( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::new_generator", arguments: _args, }); } export function shuffle( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::random::shuffle", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function generateBool( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.generateBool(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function generateBytes( client: SuiGrpcClient, args: [string, number], ): Promise> { const tx = new Transaction(); builder.generateBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function generateU128( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.generateU128(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U128"], ); } export async function generateU128InRange( client: SuiGrpcClient, args: [string, bigint, bigint], ): Promise> { const tx = new Transaction(); builder.generateU128InRange(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U128"], ); } export async function generateU16( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.generateU16(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U16"], ); } export async function generateU16InRange( client: SuiGrpcClient, args: [string, number, number], ): Promise> { const tx = new Transaction(); builder.generateU16InRange(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U16"], ); } export async function generateU256( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.generateU256(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U256"], ); } export async function generateU32( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.generateU32(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U32"], ); } export async function generateU32InRange( client: SuiGrpcClient, args: [string, number, number], ): Promise> { const tx = new Transaction(); builder.generateU32InRange(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U32"], ); } export async function generateU64( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.generateU64(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function generateU64InRange( client: SuiGrpcClient, args: [string, bigint, bigint], ): Promise> { const tx = new Transaction(); builder.generateU64InRange(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function generateU8( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.generateU8(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], ); } export async function generateU8InRange( client: SuiGrpcClient, args: [string, number, number], ): Promise> { const tx = new Transaction(); builder.generateU8InRange(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number]>( simulateRes, ["U8"], ); } export async function newGenerator( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.newGenerator(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [random.RandomGenerator] >(simulateRes, ["0x2::random::RandomGenerator"]); } export async function shuffle( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.shuffle(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } } } export namespace rangeproofs { export namespace builder { export function verifyBulletproofsRistretto255( tx: Transaction, args: [ string | TransactionObjectArgument, number | TransactionArgument, string | TransactionObjectArgument, number | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrPureU8(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::rangeproofs::verify_bulletproofs_ristretto255", arguments: _args, }); } export function verifyBulletproofsWithDstRistretto255( tx: Transaction, args: [ string | TransactionObjectArgument, number | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, number | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU8(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrObject(args[3], tx)); _args.push(transactionArgumentOrPureU8(args[4], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::rangeproofs::verify_bulletproofs_with_dst_ristretto255", arguments: _args, }); } } export namespace view { export async function verifyBulletproofsRistretto255( client: SuiGrpcClient, args: [string, number, string, number], ): Promise> { const tx = new Transaction(); builder.verifyBulletproofsRistretto255(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function verifyBulletproofsWithDstRistretto255( client: SuiGrpcClient, args: [string, number, string, string, number], ): Promise> { const tx = new Transaction(); builder.verifyBulletproofsWithDstRistretto255(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } } } export namespace ristretto255 { export interface G { dummy_field: boolean; } export namespace G { export const TYPE_QNAME = "0x2::ristretto255::G"; const TYPE = new TypeDescriptor(G.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface Scalar { dummy_field: boolean; } export namespace Scalar { export const TYPE_QNAME = "0x2::ristretto255::Scalar"; const TYPE = new TypeDescriptor(Scalar.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function gAdd( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::g_add", arguments: _args, }); } export function gDiv( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::g_div", arguments: _args, }); } export function gFromBytes( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::g_from_bytes", arguments: _args, }); } export function gGenerator( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::g_generator", arguments: _args, }); } export function gIdentity( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::g_identity", arguments: _args, }); } export function gMul( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::g_mul", arguments: _args, }); } export function gNeg( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::g_neg", arguments: _args, }); } export function gSub( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::g_sub", arguments: _args, }); } export function scalarAdd( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::scalar_add", arguments: _args, }); } export function scalarDiv( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::scalar_div", arguments: _args, }); } export function scalarFromBytes( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::scalar_from_bytes", arguments: _args, }); } export function scalarFromU64( tx: Transaction, args: [bigint | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::scalar_from_u64", arguments: _args, }); } export function scalarInv( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::scalar_inv", arguments: _args, }); } export function scalarMul( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::scalar_mul", arguments: _args, }); } export function scalarNeg( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::scalar_neg", arguments: _args, }); } export function scalarOne( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::scalar_one", arguments: _args, }); } export function scalarSub( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::scalar_sub", arguments: _args, }); } export function scalarZero( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::ristretto255::scalar_zero", arguments: _args, }); } } export namespace view { export async function gAdd( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.gAdd(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::G>"]); } export async function gDiv( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.gDiv(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::G>"]); } export async function gFromBytes( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.gFromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::G>"]); } export async function gGenerator( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.gGenerator(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::G>"]); } export async function gIdentity( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.gIdentity(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::G>"]); } export async function gMul( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.gMul(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::G>"]); } export async function gNeg( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.gNeg(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::G>"]); } export async function gSub( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.gSub(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::G>"]); } export async function scalarAdd( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.scalarAdd(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::Scalar>"]); } export async function scalarDiv( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.scalarDiv(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::Scalar>"]); } export async function scalarFromBytes( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.scalarFromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::Scalar>"]); } export async function scalarFromU64( client: SuiGrpcClient, args: [bigint], ): Promise]>> { const tx = new Transaction(); builder.scalarFromU64(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::Scalar>"]); } export async function scalarInv( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.scalarInv(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::Scalar>"]); } export async function scalarMul( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.scalarMul(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::Scalar>"]); } export async function scalarNeg( client: SuiGrpcClient, args: [string], ): Promise]>> { const tx = new Transaction(); builder.scalarNeg(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::Scalar>"]); } export async function scalarOne( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.scalarOne(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::Scalar>"]); } export async function scalarSub( client: SuiGrpcClient, args: [string, string], ): Promise]>> { const tx = new Transaction(); builder.scalarSub(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::Scalar>"]); } export async function scalarZero( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.scalarZero(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [group_ops.Element] >(simulateRes, ["0x2::group_ops::Element<0x2::ristretto255::Scalar>"]); } } } export class sui extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("sui", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): sui { return new sui({ ...sui.DEFAULT_OPTIONS, ...options }); } onEntryTransfer( func: (call: sui.TransferPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions, ): sui { this.onEntryFunctionCall( func, { ...filter, function: "sui::transfer", }, handlerOptions, ); return this; } } export namespace sui { export interface SUI { dummy_field: boolean; } export namespace SUI { export const TYPE_QNAME = "0x2::sui::SUI"; const TYPE = new TypeDescriptor(SUI.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function transfer( tx: Transaction, args: [ coin.Coin | TransactionArgument, string | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::sui::transfer", arguments: _args, }); } } export namespace view { export async function transfer( client: SuiGrpcClient, args: [coin.Coin, string], ): Promise> { const tx = new Transaction(); builder.transfer(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } } export interface TransferPayload extends TypedFunctionPayload<[coin.Coin, string]> { arguments_decoded: [coin.Coin, string]; type_arguments: []; } } export namespace table { export interface Table { id: object$.UID; size: bigint; } export namespace Table { export const TYPE_QNAME = "0x2::table::Table"; const TYPE = new TypeDescriptor>(Table.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, arg1: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0, arg1); } } export namespace builder { export function add( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table::add", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrow( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table::borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function borrowMut( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table::borrow_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function contains( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table::contains", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function destroyEmpty( tx: Transaction, args: [table.Table | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table::destroy_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function drop( tx: Transaction, args: [table.Table | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table::drop", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function isEmpty( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table::is_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function length( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table::length", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function new$( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::table::new", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function remove( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } } export namespace view { export async function add( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.add(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function borrow( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function borrowMut( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function contains( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.contains(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function destroyEmpty( client: SuiGrpcClient, args: [table.Table], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroyEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function drop( client: SuiGrpcClient, args: [table.Table], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.drop(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function isEmpty( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function length( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.length(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function new$( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.new$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [table.Table] >(simulateRes, ["0x2::table::Table"], typeArguments); } export async function remove( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T1]>( simulateRes, ["T1"], typeArguments, ); } } } export namespace table_vec { export interface TableVec { contents: table.Table; } export namespace TableVec { export const TYPE_QNAME = "0x2::table_vec::TableVec"; const TYPE = new TypeDescriptor>(TableVec.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function borrow( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::borrow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function borrowMut( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::borrow_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroyEmpty( tx: Transaction, args: [table_vec.TableVec | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::destroy_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function drop( tx: Transaction, args: [table_vec.TableVec | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::drop", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function empty( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isEmpty( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::is_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function length( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::length", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function popBack( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::pop_back", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function pushBack( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::push_back", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function singleton( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::singleton", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function swap( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, bigint | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrPureU64(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::swap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function swapRemove( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::table_vec::swap_remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function borrow( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T0"], typeArguments, ); } export async function borrowMut( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.borrowMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T0"], typeArguments, ); } export async function destroyEmpty( client: SuiGrpcClient, args: [table_vec.TableVec], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroyEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function drop( client: SuiGrpcClient, args: [table_vec.TableVec], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.drop(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function empty( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.empty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [table_vec.TableVec] >(simulateRes, ["0x2::table_vec::TableVec"], typeArguments); } export async function isEmpty( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function length( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.length(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function popBack( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.popBack(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0]>( simulateRes, ["T0"], typeArguments, ); } export async function pushBack( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.pushBack(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function singleton( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.singleton(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [table_vec.TableVec] >(simulateRes, ["0x2::table_vec::TableVec"], typeArguments); } export async function swap( client: SuiGrpcClient, args: [string, bigint, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.swap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function swapRemove( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.swapRemove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0]>( simulateRes, ["T0"], typeArguments, ); } } } export class token extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("token", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): token { return new token({ ...token.DEFAULT_OPTIONS, ...options }); } onEventRuleKey( func: (event: token.RuleKeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): token { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "token::RuleKey" }, handlerOptions, ); return this; } onEventTokenPolicyCreated( func: (event: token.TokenPolicyCreatedInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, token.TokenPolicyCreatedInstance >, eventFilter?: Omit, ): token { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "token::TokenPolicyCreated" }, handlerOptions, ); return this; } } export namespace token { export interface ActionRequest { name: string; amount: bigint; sender: string; recipient: _0x1.option.Option; spent_balance: _0x1.option.Option>; approvals: vec_set.VecSet<_0x1.type_name.TypeName>; } export namespace ActionRequest { export const TYPE_QNAME = "0x2::token::ActionRequest"; const TYPE = new TypeDescriptor>( ActionRequest.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface RuleKey { is_protected: boolean; } export namespace RuleKey { export const TYPE_QNAME = "0x2::token::RuleKey"; const TYPE = new TypeDescriptor>(RuleKey.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type RuleKeyInstance = TypedEventInstance> & { data_decoded: RuleKey; type_arguments: [string]; }; export interface Token { id: object$.UID; balance: balance.Balance; } export namespace Token { export const TYPE_QNAME = "0x2::token::Token"; const TYPE = new TypeDescriptor>(Token.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface TokenPolicy { id: object$.UID; spent_balance: balance.Balance; rules: vec_map.VecMap>; } export namespace TokenPolicy { export const TYPE_QNAME = "0x2::token::TokenPolicy"; const TYPE = new TypeDescriptor>(TokenPolicy.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface TokenPolicyCap { id: object$.UID; for: object$.ID; } export namespace TokenPolicyCap { export const TYPE_QNAME = "0x2::token::TokenPolicyCap"; const TYPE = new TypeDescriptor>( TokenPolicyCap.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface TokenPolicyCreated { id: object$.ID; is_mutable: boolean; } export namespace TokenPolicyCreated { export const TYPE_QNAME = "0x2::token::TokenPolicyCreated"; const TYPE = new TypeDescriptor>( TokenPolicyCreated.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type TokenPolicyCreatedInstance = TypedEventInstance< TokenPolicyCreated > & { data_decoded: TokenPolicyCreated; type_arguments: [string]; }; export namespace builder { export function action( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::action", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function addApproval( tx: Transaction, args: [T1 | TransactionArgument, string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::add_approval", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function addRuleConfig( tx: Transaction, args: [ T1 | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, T2 | TransactionArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::add_rule_config", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function addRuleForAction( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::add_rule_for_action", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function allow( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::allow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function amount( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::amount", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function approvals( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::approvals", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function burn( tx: Transaction, args: [ string | TransactionObjectArgument, token.Token | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::burn", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function confirmRequest( tx: Transaction, args: [ string | TransactionObjectArgument, token.ActionRequest | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::confirm_request", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function confirmRequestMut( tx: Transaction, args: [ string | TransactionObjectArgument, token.ActionRequest | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::confirm_request_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function confirmWithPolicyCap( tx: Transaction, args: [ string | TransactionObjectArgument, token.ActionRequest | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::confirm_with_policy_cap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function confirmWithTreasuryCap( tx: Transaction, args: [ string | TransactionObjectArgument, token.ActionRequest | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::confirm_with_treasury_cap", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroyZero( tx: Transaction, args: [token.Token | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::destroy_zero", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function disallow( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::disallow", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function flush( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::flush", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function fromCoin( tx: Transaction, args: [coin.Coin | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::from_coin", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function fromCoinAction( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::token::from_coin_action", arguments: _args, }); } export function hasRuleConfig( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::has_rule_config", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function hasRuleConfigWithType( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::has_rule_config_with_type", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function isAllowed( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::is_allowed", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function join( tx: Transaction, args: [ string | TransactionObjectArgument, token.Token | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::join", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function keep( tx: Transaction, args: [token.Token | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::keep", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function mint( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::mint", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newPolicy( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::new_policy", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newRequest( tx: Transaction, args: [ string | TransactionArgument, bigint | TransactionArgument, _0x1.option.Option | TransactionArgument, _0x1.option.Option> | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::new_request", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function recipient( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::recipient", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function removeRuleConfig( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::remove_rule_config", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function removeRuleForAction( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::remove_rule_for_action", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function ruleConfig( tx: Transaction, args: [T1 | TransactionArgument, string | TransactionObjectArgument], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::rule_config", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function ruleConfigMut( tx: Transaction, args: [ T1 | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::rule_config_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function rules( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::rules", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function sender( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::sender", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function sharePolicy( tx: Transaction, args: [token.TokenPolicy | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::share_policy", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function spend( tx: Transaction, args: [token.Token | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::spend", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function spendAction( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::token::spend_action", arguments: _args, }); } export function spent( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::spent", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function spentBalance( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::spent_balance", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function split( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::split", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function toCoin( tx: Transaction, args: [token.Token | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::to_coin", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function toCoinAction( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::token::to_coin_action", arguments: _args, }); } export function transfer( tx: Transaction, args: [ token.Token | TransactionArgument, string | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::transfer", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function transferAction( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::token::transfer_action", arguments: _args, }); } export function value( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::token::value", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function zero( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::token::zero", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function action( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.action(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], typeArguments, ); } export async function addApproval( client: SuiGrpcClient, args: [T1, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.addApproval(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function addRuleConfig( client: SuiGrpcClient, args: [T1, string, string, T2], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.addRuleConfig(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function addRuleForAction( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.addRuleForAction(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function allow( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.allow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function amount( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.amount(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function approvals( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[vec_set.VecSet<_0x1.type_name.TypeName>]> > { const tx = new Transaction(); builder.approvals(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [vec_set.VecSet<_0x1.type_name.TypeName>] >( simulateRes, ["0x2::vec_set::VecSet<0x1::type_name::TypeName>"], typeArguments, ); } export async function burn( client: SuiGrpcClient, args: [string, token.Token], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.burn(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function confirmRequest( client: SuiGrpcClient, args: [string, token.ActionRequest], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[string, bigint, string, _0x1.option.Option]> > { const tx = new Transaction(); builder.confirmRequest(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [string, bigint, string, _0x1.option.Option] >( simulateRes, [ "0x1::string::String", "U64", "Address", "0x1::option::Option
", ], typeArguments, ); } export async function confirmRequestMut( client: SuiGrpcClient, args: [string, token.ActionRequest], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[string, bigint, string, _0x1.option.Option]> > { const tx = new Transaction(); builder.confirmRequestMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [string, bigint, string, _0x1.option.Option] >( simulateRes, [ "0x1::string::String", "U64", "Address", "0x1::option::Option
", ], typeArguments, ); } export async function confirmWithPolicyCap( client: SuiGrpcClient, args: [string, token.ActionRequest], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[string, bigint, string, _0x1.option.Option]> > { const tx = new Transaction(); builder.confirmWithPolicyCap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [string, bigint, string, _0x1.option.Option] >( simulateRes, [ "0x1::string::String", "U64", "Address", "0x1::option::Option
", ], typeArguments, ); } export async function confirmWithTreasuryCap( client: SuiGrpcClient, args: [string, token.ActionRequest], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[string, bigint, string, _0x1.option.Option]> > { const tx = new Transaction(); builder.confirmWithTreasuryCap(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [string, bigint, string, _0x1.option.Option] >( simulateRes, [ "0x1::string::String", "U64", "Address", "0x1::option::Option
", ], typeArguments, ); } export async function destroyZero( client: SuiGrpcClient, args: [token.Token], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroyZero(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function disallow( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.disallow(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function flush( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.flush(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function fromCoin( client: SuiGrpcClient, args: [coin.Coin], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[token.Token, token.ActionRequest]> > { const tx = new Transaction(); builder.fromCoin(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [token.Token, token.ActionRequest] >( simulateRes, ["0x2::token::Token", "0x2::token::ActionRequest"], typeArguments, ); } export async function fromCoinAction( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.fromCoinAction(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], ); } export async function hasRuleConfig( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.hasRuleConfig(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function hasRuleConfigWithType( client: SuiGrpcClient, args: [string], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.hasRuleConfigWithType(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function isAllowed( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isAllowed(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function join( client: SuiGrpcClient, args: [string, token.Token], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.join(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function keep( client: SuiGrpcClient, args: [token.Token], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.keep(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function mint( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.mint(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [token.Token] >(simulateRes, ["0x2::token::Token"], typeArguments); } export async function newPolicy( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[token.TokenPolicy, token.TokenPolicyCap]> > { const tx = new Transaction(); builder.newPolicy(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [token.TokenPolicy, token.TokenPolicyCap] >( simulateRes, ["0x2::token::TokenPolicy", "0x2::token::TokenPolicyCap"], typeArguments, ); } export async function newRequest( client: SuiGrpcClient, args: [ string, bigint, _0x1.option.Option, _0x1.option.Option>, ], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.newRequest(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [token.ActionRequest] >(simulateRes, ["0x2::token::ActionRequest"], typeArguments); } export async function recipient( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.recipient(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option
"], typeArguments); } export async function removeRuleConfig( client: SuiGrpcClient, args: [string, string], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.removeRuleConfig(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T2]>( simulateRes, ["T2"], typeArguments, ); } export async function removeRuleForAction( client: SuiGrpcClient, args: [string, string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.removeRuleForAction(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function ruleConfig( client: SuiGrpcClient, args: [T1, string], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.ruleConfig(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T2"], typeArguments, ); } export async function ruleConfigMut( client: SuiGrpcClient, args: [T1, string, string], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.ruleConfigMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T2"], typeArguments, ); } export async function rules( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults<[vec_set.VecSet<_0x1.type_name.TypeName>]> > { const tx = new Transaction(); builder.rules(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [vec_set.VecSet<_0x1.type_name.TypeName>] >( simulateRes, ["0x2::vec_set::VecSet<0x1::type_name::TypeName>"], typeArguments, ); } export async function sender( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.sender(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], typeArguments, ); } export async function sharePolicy( client: SuiGrpcClient, args: [token.TokenPolicy], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.sharePolicy(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function spend( client: SuiGrpcClient, args: [token.Token], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.spend(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [token.ActionRequest] >(simulateRes, ["0x2::token::ActionRequest"], typeArguments); } export async function spendAction( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.spendAction(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], ); } export async function spent( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.spent(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } export async function spentBalance( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.spentBalance(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function split( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.split(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [token.Token] >(simulateRes, ["0x2::token::Token"], typeArguments); } export async function toCoin( client: SuiGrpcClient, args: [token.Token], typeArguments: [TypeDescriptor | string], ): Promise, token.ActionRequest]>> { const tx = new Transaction(); builder.toCoin(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.Coin, token.ActionRequest] >( simulateRes, ["0x2::coin::Coin", "0x2::token::ActionRequest"], typeArguments, ); } export async function toCoinAction( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.toCoinAction(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], ); } export async function transfer( client: SuiGrpcClient, args: [token.Token, string], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.transfer(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [token.ActionRequest] >(simulateRes, ["0x2::token::ActionRequest"], typeArguments); } export async function transferAction( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.transferAction(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], ); } export async function value( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.value(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function zero( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.zero(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [token.Token] >(simulateRes, ["0x2::token::Token"], typeArguments); } } } export namespace transfer { export interface Receiving { id: object$.ID; version: bigint; } export namespace Receiving { export const TYPE_QNAME = "0x2::transfer::Receiving"; const TYPE = new TypeDescriptor>(Receiving.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function freezeObject( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::freeze_object", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function freezeObjectImpl( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::freeze_object_impl", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function partyTransfer( tx: Transaction, args: [T0 | TransactionArgument, party.Party | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::party_transfer", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function partyTransferImpl( tx: Transaction, args: [ T0 | TransactionArgument, bigint | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrVec(args[2], tx)); _args.push(transactionArgumentOrVec(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::party_transfer_impl", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function publicFreezeObject( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::public_freeze_object", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function publicPartyTransfer( tx: Transaction, args: [T0 | TransactionArgument, party.Party | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::public_party_transfer", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function publicReceive( tx: Transaction, args: [ string | TransactionObjectArgument, transfer.Receiving | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::public_receive", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function publicShareObject( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::public_share_object", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function publicTransfer( tx: Transaction, args: [T0 | TransactionArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::public_transfer", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function receive( tx: Transaction, args: [ string | TransactionObjectArgument, transfer.Receiving | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::receive", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function receivingObjectId( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::receiving_object_id", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function shareObject( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::share_object", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function shareObjectImpl( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::share_object_impl", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function transfer( tx: Transaction, args: [T0 | TransactionArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::transfer", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function transferImpl( tx: Transaction, args: [T0 | TransactionArgument, string | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureAddress(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer::transfer_impl", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function freezeObject( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.freezeObject(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function freezeObjectImpl( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.freezeObjectImpl(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function partyTransfer( client: SuiGrpcClient, args: [T0, party.Party], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.partyTransfer(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function partyTransferImpl( client: SuiGrpcClient, args: [T0, bigint, string[], string[]], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.partyTransferImpl(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function publicFreezeObject( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.publicFreezeObject(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function publicPartyTransfer( client: SuiGrpcClient, args: [T0, party.Party], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.publicPartyTransfer(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function publicReceive( client: SuiGrpcClient, args: [string, transfer.Receiving], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.publicReceive(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0]>( simulateRes, ["T0"], typeArguments, ); } export async function publicShareObject( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.publicShareObject(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function publicTransfer( client: SuiGrpcClient, args: [T0, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.publicTransfer(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function receive( client: SuiGrpcClient, args: [string, transfer.Receiving], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.receive(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0]>( simulateRes, ["T0"], typeArguments, ); } export async function receivingObjectId( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.receivingObjectId(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], typeArguments, ); } export async function shareObject( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.shareObject(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function shareObjectImpl( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.shareObjectImpl(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function transfer( client: SuiGrpcClient, args: [T0, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.transfer(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function transferImpl( client: SuiGrpcClient, args: [T0, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.transferImpl(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } } } export class transfer_policy extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("transfer_policy", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): transfer_policy { return new transfer_policy({ ...transfer_policy.DEFAULT_OPTIONS, ...options, }); } onEntryDefault( func: (call: transfer_policy.DefaultPayload, ctx: SuiContext) => void, filter?: CallFilter, handlerOptions?: HandlerOptions< MoveFetchConfig, transfer_policy.DefaultPayload >, ): transfer_policy { this.onEntryFunctionCall( func, { ...filter, function: "transfer_policy::default", }, handlerOptions, ); return this; } onEventRuleKey( func: (event: transfer_policy.RuleKeyInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, transfer_policy.RuleKeyInstance >, eventFilter?: Omit, ): transfer_policy { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "transfer_policy::RuleKey" }, handlerOptions, ); return this; } onEventTransferPolicyCreated( func: ( event: transfer_policy.TransferPolicyCreatedInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, transfer_policy.TransferPolicyCreatedInstance >, eventFilter?: Omit, ): transfer_policy { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "transfer_policy::TransferPolicyCreated", }, handlerOptions, ); return this; } onEventTransferPolicyDestroyed( func: ( event: transfer_policy.TransferPolicyDestroyedInstance, ctx: SuiContext, ) => void, handlerOptions?: HandlerOptions< MoveFetchConfig, transfer_policy.TransferPolicyDestroyedInstance >, eventFilter?: Omit, ): transfer_policy { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "transfer_policy::TransferPolicyDestroyed", }, handlerOptions, ); return this; } } export namespace transfer_policy { export interface RuleKey { dummy_field: boolean; } export namespace RuleKey { export const TYPE_QNAME = "0x2::transfer_policy::RuleKey"; const TYPE = new TypeDescriptor>(RuleKey.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type RuleKeyInstance = TypedEventInstance> & { data_decoded: RuleKey; type_arguments: [string]; }; export interface TransferPolicy { id: object$.UID; balance: balance.Balance; rules: vec_set.VecSet<_0x1.type_name.TypeName>; } export namespace TransferPolicy { export const TYPE_QNAME = "0x2::transfer_policy::TransferPolicy"; const TYPE = new TypeDescriptor>( TransferPolicy.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface TransferPolicyCap { id: object$.UID; policy_id: object$.ID; } export namespace TransferPolicyCap { export const TYPE_QNAME = "0x2::transfer_policy::TransferPolicyCap"; const TYPE = new TypeDescriptor>( TransferPolicyCap.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export interface TransferPolicyCreated { id: object$.ID; } export namespace TransferPolicyCreated { export const TYPE_QNAME = "0x2::transfer_policy::TransferPolicyCreated"; const TYPE = new TypeDescriptor>( TransferPolicyCreated.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type TransferPolicyCreatedInstance = TypedEventInstance< TransferPolicyCreated > & { data_decoded: TransferPolicyCreated; type_arguments: [string]; }; export interface TransferPolicyDestroyed { id: object$.ID; } export namespace TransferPolicyDestroyed { export const TYPE_QNAME = "0x2::transfer_policy::TransferPolicyDestroyed"; const TYPE = new TypeDescriptor>( TransferPolicyDestroyed.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type TransferPolicyDestroyedInstance = TypedEventInstance< TransferPolicyDestroyed > & { data_decoded: TransferPolicyDestroyed; type_arguments: [string]; }; export interface TransferRequest { item: object$.ID; paid: bigint; from: object$.ID; receipts: vec_set.VecSet<_0x1.type_name.TypeName>; } export namespace TransferRequest { export const TYPE_QNAME = "0x2::transfer_policy::TransferRequest"; const TYPE = new TypeDescriptor>( TransferRequest.TYPE_QNAME, ); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export namespace builder { export function addReceipt( tx: Transaction, args: [T1 | TransactionArgument, string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::add_receipt", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function addRule( tx: Transaction, args: [ T1 | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, T2 | TransactionArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::add_rule", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function addToBalance( tx: Transaction, args: [ T1 | TransactionArgument, string | TransactionObjectArgument, coin.Coin | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::add_to_balance", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function confirmRequest( tx: Transaction, args: [ string | TransactionObjectArgument, transfer_policy.TransferRequest | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::confirm_request", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function default$( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::default", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroyAndWithdraw( tx: Transaction, args: [ transfer_policy.TransferPolicy | TransactionArgument, transfer_policy.TransferPolicyCap | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::destroy_and_withdraw", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function from$( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::from", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function getRule( tx: Transaction, args: [T1 | TransactionArgument, string | TransactionObjectArgument], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::get_rule", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function hasRule( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::has_rule", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function item( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::item", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function new$( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::new", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function newRequest( tx: Transaction, args: [ object$.ID | TransactionArgument, bigint | TransactionArgument, object$.ID | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::new_request", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function paid( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::paid", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function removeRule( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::remove_rule", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), typeof typeArguments[2] === "string" ? typeArguments[2] : typeArguments[2].getSignature(), ], }); } export function rules( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::rules", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function uid( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::uid", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function uidMutAsOwner( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::uid_mut_as_owner", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function withdraw( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, _0x1.option.Option | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::transfer_policy::withdraw", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function addReceipt( client: SuiGrpcClient, args: [T1, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.addReceipt(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function addRule( client: SuiGrpcClient, args: [T1, string, string, T2], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.addRule(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function addToBalance( client: SuiGrpcClient, args: [T1, string, coin.Coin], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.addToBalance(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function confirmRequest( client: SuiGrpcClient, args: [string, transfer_policy.TransferRequest], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.confirmRequest(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [object$.ID, bigint, object$.ID] >( simulateRes, ["0x2::object::ID", "U64", "0x2::object::ID"], typeArguments, ); } export async function destroyAndWithdraw( client: SuiGrpcClient, args: [ transfer_policy.TransferPolicy, transfer_policy.TransferPolicyCap, ], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.destroyAndWithdraw(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.Coin] >(simulateRes, ["0x2::coin::Coin<0x2::sui::SUI>"], typeArguments); } export async function from$( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.from$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], typeArguments, ); } export async function getRule( client: SuiGrpcClient, args: [T1, string], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.getRule(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T2"], typeArguments, ); } export async function hasRule( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.hasRule(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function item( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.item(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[object$.ID]>( simulateRes, ["0x2::object::ID"], typeArguments, ); } export async function new$( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise< TypedSimulateResults< [ transfer_policy.TransferPolicy, transfer_policy.TransferPolicyCap, ] > > { const tx = new Transaction(); builder.new$(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [ transfer_policy.TransferPolicy, transfer_policy.TransferPolicyCap, ] >( simulateRes, [ "0x2::transfer_policy::TransferPolicy", "0x2::transfer_policy::TransferPolicyCap", ], typeArguments, ); } export async function newRequest( client: SuiGrpcClient, args: [object$.ID, bigint, object$.ID], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.newRequest(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [transfer_policy.TransferRequest] >( simulateRes, ["0x2::transfer_policy::TransferRequest"], typeArguments, ); } export async function paid( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.paid(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function removeRule( client: SuiGrpcClient, args: [string, string], typeArguments: [ TypeDescriptor | string, TypeDescriptor | string, TypeDescriptor | string, ], ): Promise> { const tx = new Transaction(); builder.removeRule(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function rules( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.rules(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::vec_set::VecSet<0x1::type_name::TypeName>"], typeArguments, ); } export async function uid( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.uid(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::object::UID"], typeArguments, ); } export async function uidMutAsOwner( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.uidMutAsOwner(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x2::object::UID"], typeArguments, ); } export async function withdraw( client: SuiGrpcClient, args: [string, string, _0x1.option.Option], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.withdraw(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [coin.Coin] >(simulateRes, ["0x2::coin::Coin<0x2::sui::SUI>"], typeArguments); } } export interface DefaultPayload extends TypedFunctionPayload<[string, string]> { arguments_decoded: [string, string]; type_arguments: [string]; } } export namespace tx_context { export interface TxContext { sender: string; tx_hash: number[]; epoch: bigint; epoch_timestamp_ms: bigint; ids_created: bigint; } export namespace TxContext { export const TYPE_QNAME = "0x2::tx_context::TxContext"; const TYPE = new TypeDescriptor(TxContext.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function digest( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::tx_context::digest", arguments: _args, }); } export function epoch(tx: Transaction, args: []): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::tx_context::epoch", arguments: _args, }); } export function epochTimestampMs( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::tx_context::epoch_timestamp_ms", arguments: _args, }); } export function freshObjectAddress( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::tx_context::fresh_object_address", arguments: _args, }); } export function gasPrice( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::tx_context::gas_price", arguments: _args, }); } export function referenceGasPrice( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::tx_context::reference_gas_price", arguments: _args, }); } export function sender( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::tx_context::sender", arguments: _args, }); } export function sponsor( tx: Transaction, args: [], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::tx_context::sponsor", arguments: _args, }); } } export namespace view { export async function digest( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.digest(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Vector"], ); } export async function epoch( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.epoch(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function epochTimestampMs( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.epochTimestampMs(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function freshObjectAddress( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.freshObjectAddress(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function gasPrice( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.gasPrice(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function referenceGasPrice( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.referenceGasPrice(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } export async function sender( client: SuiGrpcClient, args: [], ): Promise> { const tx = new Transaction(); builder.sender(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function sponsor( client: SuiGrpcClient, args: [], ): Promise]>> { const tx = new Transaction(); builder.sponsor(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option
"]); } } } export namespace types { export namespace builder { export function isOneTimeWitness( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::types::is_one_time_witness", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function isOneTimeWitness( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isOneTimeWitness(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } } } export class url extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("url", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): url { return new url({ ...url.DEFAULT_OPTIONS, ...options }); } onEventUrl( func: (event: url.UrlInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): url { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "url::Url" }, handlerOptions, ); return this; } } export namespace url { export interface Url { url: _0x1.ascii.String; } export namespace Url { export const TYPE_QNAME = "0x2::url::Url"; const TYPE = new TypeDescriptor(Url.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export type UrlInstance = TypedEventInstance & { data_decoded: Url; type_arguments: []; }; export namespace builder { export function innerUrl( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::url::inner_url", arguments: _args, }); } export function newUnsafe( tx: Transaction, args: [_0x1.ascii.String | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::url::new_unsafe", arguments: _args, }); } export function newUnsafeFromBytes( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::url::new_unsafe_from_bytes", arguments: _args, }); } export function update( tx: Transaction, args: [ string | TransactionObjectArgument, _0x1.ascii.String | TransactionArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::url::update", arguments: _args, }); } } export namespace view { export async function innerUrl( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.innerUrl(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.ascii.String] >(simulateRes, ["0x1::ascii::String"]); } export async function newUnsafe( client: SuiGrpcClient, args: [_0x1.ascii.String], ): Promise> { const tx = new Transaction(); builder.newUnsafe(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[url.Url]>( simulateRes, ["0x2::url::Url"], ); } export async function newUnsafeFromBytes( client: SuiGrpcClient, args: [string[]], ): Promise> { const tx = new Transaction(); builder.newUnsafeFromBytes(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[url.Url]>( simulateRes, ["0x2::url::Url"], ); } export async function update( client: SuiGrpcClient, args: [string, _0x1.ascii.String], ): Promise> { const tx = new Transaction(); builder.update(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } } } export namespace vdf { export namespace builder { export function hashToInput( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vdf::hash_to_input", arguments: _args, }); } export function vdfVerify( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, bigint | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrPureU64(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vdf::vdf_verify", arguments: _args, }); } } export namespace view { export async function hashToInput( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.hashToInput(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[number[]]>( simulateRes, ["Vector"], ); } export async function vdfVerify( client: SuiGrpcClient, args: [string, string, string, bigint], ): Promise> { const tx = new Transaction(); builder.vdfVerify(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } } } export class vec_map extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("vec_map", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): vec_map { return new vec_map({ ...vec_map.DEFAULT_OPTIONS, ...options }); } onEventEntry( func: (event: vec_map.EntryInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): vec_map { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "vec_map::Entry" }, handlerOptions, ); return this; } onEventVecMap( func: (event: vec_map.VecMapInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): vec_map { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "vec_map::VecMap" }, handlerOptions, ); return this; } } export namespace vec_map { export interface Entry { key: T0; value: T1; } export namespace Entry { export const TYPE_QNAME = "0x2::vec_map::Entry"; const TYPE = new TypeDescriptor>(Entry.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, arg1: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0, arg1); } } export type EntryInstance = TypedEventInstance> & { data_decoded: Entry; type_arguments: [string, string]; }; export interface VecMap { contents: vec_map.Entry[]; } export namespace VecMap { export const TYPE_QNAME = "0x2::vec_map::VecMap"; const TYPE = new TypeDescriptor>(VecMap.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, arg1: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0, arg1); } } export type VecMapInstance = TypedEventInstance> & { data_decoded: VecMap; type_arguments: [string, string]; }; export namespace builder { export function contains( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::contains", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function destroyEmpty( tx: Transaction, args: [vec_map.VecMap | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::destroy_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function empty( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function fromKeysValues( tx: Transaction, args: [ (string | TransactionObjectArgument)[] | TransactionArgument, (string | TransactionObjectArgument)[] | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); _args.push(transactionArgumentOrVec(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::from_keys_values", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function get( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::get", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function getEntryByIdx( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::get_entry_by_idx", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function getEntryByIdxMut( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::get_entry_by_idx_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function getIdx( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::get_idx", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function getIdxOpt( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::get_idx_opt", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function getMut( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::get_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function insert( tx: Transaction, args: [ string | TransactionObjectArgument, T0 | TransactionArgument, T1 | TransactionArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::insert", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function intoKeysValues( tx: Transaction, args: [vec_map.VecMap | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::into_keys_values", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function isEmpty( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::is_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function keys( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::keys", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function length( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::length", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function pop( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::pop", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function remove( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function removeEntryByIdx( tx: Transaction, args: [string | TransactionObjectArgument, bigint | TransactionArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::remove_entry_by_idx", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function size( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::size", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } export function tryGet( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_map::try_get", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), typeof typeArguments[1] === "string" ? typeArguments[1] : typeArguments[1].getSignature(), ], }); } } export namespace view { export async function contains( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.contains(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function destroyEmpty( client: SuiGrpcClient, args: [vec_map.VecMap], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroyEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function empty( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.empty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [vec_map.VecMap] >(simulateRes, ["0x2::vec_map::VecMap"], typeArguments); } export async function fromKeysValues( client: SuiGrpcClient, args: [string[], string[]], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.fromKeysValues(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [vec_map.VecMap] >(simulateRes, ["0x2::vec_map::VecMap"], typeArguments); } export async function get( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.get(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function getEntryByIdx( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.getEntryByIdx(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [string, string] >(simulateRes, ["T0", "T1"], typeArguments); } export async function getEntryByIdxMut( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.getEntryByIdxMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [string, string] >(simulateRes, ["T0", "T1"], typeArguments); } export async function getIdx( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.getIdx(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function getIdxOpt( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.getIdxOpt(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } export async function getMut( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.getMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T1"], typeArguments, ); } export async function insert( client: SuiGrpcClient, args: [string, T0, T1], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.insert(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function intoKeysValues( client: SuiGrpcClient, args: [vec_map.VecMap], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.intoKeysValues(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0[], T1[]]>( simulateRes, ["Vector", "Vector"], typeArguments, ); } export async function isEmpty( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function keys( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.keys(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0[]]>( simulateRes, ["Vector"], typeArguments, ); } export async function length( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.length(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function pop( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.pop(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0, T1]>( simulateRes, ["T0", "T1"], typeArguments, ); } export async function remove( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0, T1]>( simulateRes, ["T0", "T1"], typeArguments, ); } export async function removeEntryByIdx( client: SuiGrpcClient, args: [string, bigint], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.removeEntryByIdx(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0, T1]>( simulateRes, ["T0", "T1"], typeArguments, ); } export async function size( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.size(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function tryGet( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string, TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.tryGet(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [_0x1.option.Option] >(simulateRes, ["0x1::option::Option"], typeArguments); } } } export class vec_set extends SuiBaseProcessor { constructor(options: SuiBindOptions) { super("vec_set", options); } static DEFAULT_OPTIONS: SuiBindOptions = { address: "0x2", network: SuiNetwork.MAIN_NET, }; static bind(options: Partial = {}): vec_set { return new vec_set({ ...vec_set.DEFAULT_OPTIONS, ...options }); } onEventVecSet( func: (event: vec_set.VecSetInstance, ctx: SuiContext) => void, handlerOptions?: HandlerOptions, eventFilter?: Omit, ): vec_set { this.onMoveEvent( func, { ...(eventFilter ?? {}), type: "vec_set::VecSet" }, handlerOptions, ); return this; } } export namespace vec_set { export interface VecSet { contents: T0[]; } export namespace VecSet { export const TYPE_QNAME = "0x2::vec_set::VecSet"; const TYPE = new TypeDescriptor>(VecSet.TYPE_QNAME); export function type( arg0: TypeDescriptor = ANY_TYPE, ): TypeDescriptor> { return TYPE.apply(arg0); } } export type VecSetInstance = TypedEventInstance> & { data_decoded: VecSet; type_arguments: [string]; }; export namespace builder { export function contains( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::contains", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function empty( tx: Transaction, args: [], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [] { const _args: any[] = []; // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function fromKeys( tx: Transaction, args: [(string | TransactionObjectArgument)[] | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrVec(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::from_keys", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function insert( tx: Transaction, args: [string | TransactionObjectArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::insert", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function intoKeys( tx: Transaction, args: [vec_set.VecSet | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::into_keys", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function isEmpty( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::is_empty", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function keys( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::keys", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function length( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::length", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function remove( tx: Transaction, args: [ string | TransactionObjectArgument, string | TransactionObjectArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::remove", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function singleton( tx: Transaction, args: [T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::singleton", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function size( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::vec_set::size", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } } export namespace view { export async function contains( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.contains(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function empty( client: SuiGrpcClient, args: [], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.empty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [vec_set.VecSet] >(simulateRes, ["0x2::vec_set::VecSet"], typeArguments); } export async function fromKeys( client: SuiGrpcClient, args: [string[]], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.fromKeys(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [vec_set.VecSet] >(simulateRes, ["0x2::vec_set::VecSet"], typeArguments); } export async function insert( client: SuiGrpcClient, args: [string, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.insert(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function intoKeys( client: SuiGrpcClient, args: [vec_set.VecSet], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.intoKeys(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0[]]>( simulateRes, ["Vector"], typeArguments, ); } export async function isEmpty( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.isEmpty(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], typeArguments, ); } export async function keys( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.keys(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Vector"], typeArguments, ); } export async function length( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.length(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } export async function remove( client: SuiGrpcClient, args: [string, string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.remove(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function singleton( client: SuiGrpcClient, args: [T0], typeArguments: [TypeDescriptor | string], ): Promise]>> { const tx = new Transaction(); builder.singleton(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [vec_set.VecSet] >(simulateRes, ["0x2::vec_set::VecSet"], typeArguments); } export async function size( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.size(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], typeArguments, ); } } } export namespace versioned { export interface VersionChangeCap { versioned_id: object$.ID; old_version: bigint; } export namespace VersionChangeCap { export const TYPE_QNAME = "0x2::versioned::VersionChangeCap"; const TYPE = new TypeDescriptor( VersionChangeCap.TYPE_QNAME, ); export function type(): TypeDescriptor { return TYPE.apply(); } } export interface Versioned { id: object$.UID; version: bigint; } export namespace Versioned { export const TYPE_QNAME = "0x2::versioned::Versioned"; const TYPE = new TypeDescriptor(Versioned.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function create( tx: Transaction, args: [bigint | TransactionArgument, T0 | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU64(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::versioned::create", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function destroy( tx: Transaction, args: [versioned.Versioned | TransactionArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::versioned::destroy", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function loadValue( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::versioned::load_value", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function loadValueMut( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::versioned::load_value_mut", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function removeValueForUpgrade( tx: Transaction, args: [string | TransactionObjectArgument], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::versioned::remove_value_for_upgrade", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function upgrade( tx: Transaction, args: [ string | TransactionObjectArgument, bigint | TransactionArgument, T0 | TransactionArgument, versioned.VersionChangeCap | TransactionArgument, ], typeArguments: [TypeDescriptor | string], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); _args.push(transactionArgumentOrPureU64(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::versioned::upgrade", arguments: _args, typeArguments: [ typeof typeArguments[0] === "string" ? typeArguments[0] : typeArguments[0].getSignature(), ], }); } export function version( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::versioned::version", arguments: _args, }); } } export namespace view { export async function create( client: SuiGrpcClient, args: [bigint, T0], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.create(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [versioned.Versioned] >(simulateRes, ["0x2::versioned::Versioned"], typeArguments); } export async function destroy( client: SuiGrpcClient, args: [versioned.Versioned], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.destroy(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[T0]>( simulateRes, ["T0"], typeArguments, ); } export async function loadValue( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.loadValue(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T0"], typeArguments, ); } export async function loadValueMut( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.loadValueMut(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["T0"], typeArguments, ); } export async function removeValueForUpgrade( client: SuiGrpcClient, args: [string], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.removeValueForUpgrade(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult< [T0, versioned.VersionChangeCap] >(simulateRes, ["T0", "0x2::versioned::VersionChangeCap"], typeArguments); } export async function upgrade( client: SuiGrpcClient, args: [string, bigint, T0, versioned.VersionChangeCap], typeArguments: [TypeDescriptor | string], ): Promise> { const tx = new Transaction(); builder.upgrade(tx, args, typeArguments); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], typeArguments, ); } export async function version( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.version(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[bigint]>( simulateRes, ["U64"], ); } } } export namespace zklogin_verified_id { export interface VerifiedID { id: object$.UID; owner: string; key_claim_name: string; key_claim_value: string; issuer: string; audience: string; } export namespace VerifiedID { export const TYPE_QNAME = "0x2::zklogin_verified_id::VerifiedID"; const TYPE = new TypeDescriptor(VerifiedID.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function audience( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_id::audience", arguments: _args, }); } export function checkZkloginId( tx: Transaction, args: [ string | TransactionArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, string | TransactionObjectArgument, bigint | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); _args.push(transactionArgumentOrObject(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); _args.push(transactionArgumentOrObject(args[3], tx)); _args.push(transactionArgumentOrObject(args[4], tx)); _args.push(transactionArgumentOrPureU256(args[5], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_id::check_zklogin_id", arguments: _args, }); } export function delete$( tx: Transaction, args: [zklogin_verified_id.VerifiedID | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_id::delete", arguments: _args, }); } export function issuer( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_id::issuer", arguments: _args, }); } export function keyClaimName( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_id::key_claim_name", arguments: _args, }); } export function keyClaimValue( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_id::key_claim_value", arguments: _args, }); } export function owner( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_id::owner", arguments: _args, }); } export function verifyZkloginId( tx: Transaction, args: [ string | TransactionArgument, string | TransactionArgument, string | TransactionArgument, string | TransactionArgument, bigint | TransactionArgument, ], ): TransactionArgument & [ TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, TransactionArgument, ] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); _args.push(transactionArgumentOrPure(args[2], tx)); _args.push(transactionArgumentOrPure(args[3], tx)); _args.push(transactionArgumentOrPureU256(args[4], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_id::verify_zklogin_id", arguments: _args, }); } } export namespace view { export async function audience( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.audience(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], ); } export async function checkZkloginId( client: SuiGrpcClient, args: [string, string, string, string, string, bigint], ): Promise> { const tx = new Transaction(); builder.checkZkloginId(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function delete$( client: SuiGrpcClient, args: [zklogin_verified_id.VerifiedID], ): Promise> { const tx = new Transaction(); builder.delete$(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function issuer( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.issuer(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], ); } export async function keyClaimName( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.keyClaimName(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], ); } export async function keyClaimValue( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.keyClaimValue(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], ); } export async function owner( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.owner(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function verifyZkloginId( client: SuiGrpcClient, args: [string, string, string, string, bigint], ): Promise> { const tx = new Transaction(); builder.verifyZkloginId(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } } } export namespace zklogin_verified_issuer { export interface VerifiedIssuer { id: object$.UID; owner: string; issuer: string; } export namespace VerifiedIssuer { export const TYPE_QNAME = "0x2::zklogin_verified_issuer::VerifiedIssuer"; const TYPE = new TypeDescriptor(VerifiedIssuer.TYPE_QNAME); export function type(): TypeDescriptor { return TYPE.apply(); } } export namespace builder { export function checkZkloginIssuer( tx: Transaction, args: [ string | TransactionArgument, bigint | TransactionArgument, string | TransactionObjectArgument, ], ): TransactionArgument & [TransactionArgument, TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureAddress(args[0], tx)); _args.push(transactionArgumentOrPureU256(args[1], tx)); _args.push(transactionArgumentOrObject(args[2], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_issuer::check_zklogin_issuer", arguments: _args, }); } export function delete$( tx: Transaction, args: [zklogin_verified_issuer.VerifiedIssuer | TransactionArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPure(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_issuer::delete", arguments: _args, }); } export function issuer( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_issuer::issuer", arguments: _args, }); } export function owner( tx: Transaction, args: [string | TransactionObjectArgument], ): TransactionArgument & [TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrObject(args[0], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_issuer::owner", arguments: _args, }); } export function verifyZkloginIssuer( tx: Transaction, args: [bigint | TransactionArgument, string | TransactionArgument], ): TransactionArgument & [TransactionArgument, TransactionArgument] { const _args: any[] = []; _args.push(transactionArgumentOrPureU256(args[0], tx)); _args.push(transactionArgumentOrPure(args[1], tx)); // @ts-ignore return tx.moveCall({ target: "0x2::zklogin_verified_issuer::verify_zklogin_issuer", arguments: _args, }); } } export namespace view { export async function checkZkloginIssuer( client: SuiGrpcClient, args: [string, bigint, string], ): Promise> { const tx = new Transaction(); builder.checkZkloginIssuer(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[boolean]>( simulateRes, ["Bool"], ); } export async function delete$( client: SuiGrpcClient, args: [zklogin_verified_issuer.VerifiedIssuer], ): Promise> { const tx = new Transaction(); builder.delete$(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } export async function issuer( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.issuer(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["0x1::string::String"], ); } export async function owner( client: SuiGrpcClient, args: [string], ): Promise> { const tx = new Transaction(); builder.owner(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[string]>( simulateRes, ["Address"], ); } export async function verifyZkloginIssuer( client: SuiGrpcClient, args: [bigint, string], ): Promise> { const tx = new Transaction(); builder.verifyZkloginIssuer(tx, args); // checksEnabled: false matches the old devInspectTransactionBlock // semantics — allow simulating view calls without validating object // ownership or signer, which view callers obviously can't satisfy. const simulateRes = await client.simulateTransaction({ transaction: tx, sender: ZERO_ADDRESS, include: { commandResults: true }, checksEnabled: false, } as any); return (await getMoveCoder(client)).decodeSimulateResult<[]>( simulateRes, [], ); } } } const MODULES = JSON.parse( '[{"address":"0x2","module":{"datatypes":[{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"accumulator","name":"AccumulatorRoot","kind":1},{"abilities":[1,2,3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"address","position":0,"type":{"typeParameterInstantiation":[],"type":1}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::Key","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"accumulator","name":"Key","kind":1},{"abilities":[3],"typeParameters":[],"fields":[{"name":"value","position":0,"type":{"typeParameterInstantiation":[],"type":7}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::U128","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"accumulator","name":"U128","kind":1}],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"accumulator_address","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::Key"}}],"name":"accumulator_key","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"accumulator_u128_exists","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":7}}],"name":"accumulator_u128_read","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"create","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":7}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::U128"}}],"name":"create_u128","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::U128"}}],"returns":[],"name":"destroy_u128","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[],"name":"emit_deposit_event","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[],"name":"emit_withdraw_event","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::U128"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_zero_u128","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::Key"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"root_add_accumulator","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::Key"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"root_borrow_accumulator","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::Key"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"root_borrow_accumulator_mut","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::Key"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"root_has_accumulator","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"root_id","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"root_id_mut","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::Key"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"root_remove_accumulator","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::U128"}},{"body":{"typeParameterInstantiation":[],"type":7}},{"body":{"typeParameterInstantiation":[],"type":7}}],"returns":[],"name":"update_u128","visibility":3,"isEntry":false}],"name":"accumulator"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator_metadata::AccumulatorObjectCountKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"accumulator_metadata","name":"AccumulatorObjectCountKey","kind":1},{"abilities":[3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"fields","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator_metadata::Metadata","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"accumulator_metadata","name":"Metadata","kind":1},{"abilities":[1,2,3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator_metadata::MetadataKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"accumulator_metadata","name":"MetadataKey","kind":1},{"abilities":[3],"typeParameters":[],"fields":[{"name":"balances","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}},{"name":"owner","position":1,"type":{"typeParameterInstantiation":[],"type":1}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator_metadata::Owner","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"accumulator_metadata","name":"Owner","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"owner","position":0,"type":{"typeParameterInstantiation":[],"type":1}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator_metadata::OwnerKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"accumulator_metadata","name":"OwnerKey","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"get_accumulator_object_count","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[],"name":"record_accumulator_object_changes","visibility":1,"isEntry":false}],"name":"accumulator_metadata"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3],"typeParameters":[],"fields":[{"name":"mmr","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":8}],"type":9}},{"name":"checkpoint_seq","position":1,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"num_events","position":2,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator_settlement::EventStreamHead","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"accumulator_settlement","name":"EventStreamHead","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":8}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":8}],"type":9}}],"returns":[],"name":"add_to_mmr","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":8}},{"body":{"typeParameterInstantiation":[],"type":8}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":8}}],"name":"hash_two_to_one_u256","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":8}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator_settlement::EventStreamHead"}}],"name":"new_stream_head","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[],"name":"record_settlement_sui_conservation","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":8}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"settle_events","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":7}},{"body":{"typeParameterInstantiation":[],"type":7}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"settle_u128","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"settlement_prologue","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":8}}],"name":"u256_from_bytes","visibility":1,"isEntry":false}],"name":"accumulator_settlement"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"from_ascii_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":8}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"from_u256","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"hex_char_value","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"length","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":8}}],"name":"max","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"name":"to_ascii_string","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"to_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"to_string","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":8}}],"name":"to_u256","visibility":2,"isEntry":false}],"name":"address"}},{"address":"0x2","module":{"datatypes":[{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"version","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::address_alias::AddressAliasState","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"address_alias","name":"AddressAliasState","kind":1},{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"aliases","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::address_alias::AddressAliases","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"address_alias","name":"AddressAliases","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"pos0","position":0,"type":{"typeParameterInstantiation":[],"type":1}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::address_alias::AliasKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"address_alias","name":"AliasKey","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::address_alias::AddressAliases"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"add","visibility":1,"isEntry":true},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"create","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::address_alias::AddressAliasState"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"enable","visibility":1,"isEntry":true},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::address_alias::AddressAliases"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"remove","visibility":1,"isEntry":true},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::address_alias::AddressAliases"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":9}}],"returns":[],"name":"replace_all","visibility":1,"isEntry":true}],"name":"address_alias"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"jwk_id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::JwkId"}},{"name":"jwk","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::JWK"}},{"name":"epoch","position":2,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"authenticator_state","name":"ActiveJwk","kind":1},{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"version","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::AuthenticatorState","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"authenticator_state","name":"AuthenticatorState","kind":1},{"abilities":[3],"typeParameters":[],"fields":[{"name":"version","position":0,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"active_jwks","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk"}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::AuthenticatorStateInner","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"authenticator_state","name":"AuthenticatorStateInner","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"kty","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"e","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"n","position":2,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"alg","position":3,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::JWK","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"authenticator_state","name":"JWK","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"iss","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"kid","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::JwkId","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"authenticator_state","name":"JwkId","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"active_jwk_equal","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk"}],"type":9}}],"returns":[],"name":"check_sorted","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"create","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk"}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk"}],"type":9}}],"name":"deduplicate","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::AuthenticatorState"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"expire_jwks","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::AuthenticatorState"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk"}],"type":9}}],"name":"get_active_jwks","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::JWK"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::JWK"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"jwk_equal","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::JwkId"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::JwkId"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"jwk_id_equal","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"jwk_lt","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::AuthenticatorState"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::AuthenticatorStateInner"}}],"name":"load_inner","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::AuthenticatorState"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::AuthenticatorStateInner"}}],"name":"load_inner_mut","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"string_bytes_lt","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::AuthenticatorState"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::authenticator_state::ActiveJwk"}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"update_authenticator_state","visibility":1,"isEntry":false}],"name":"authenticator_state"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3,4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"size","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"bag","name":"Bag","kind":1}],"functions":[{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"add","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"contains","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"contains_with_type","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}}],"returns":[],"name":"destroy_empty","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_empty","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"length","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"remove","visibility":2,"isEntry":false}],"name":"bag"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"value","position":0,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"balance","name":"Balance","kind":1},{"abilities":[3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"value","position":0,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"balance","name":"Supply","kind":1}],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"create_staking_rewards","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"name":"create_supply","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"name":"create_supply_internal","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"decrease_supply","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"destroy_storage_rebates","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"destroy_supply","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"returns":[],"name":"destroy_zero","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"increase_supply","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"join","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"redeem_funds","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"send_funds","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::accumulator::AccumulatorRoot"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"settled_funds_value","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"split","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"supply_value","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"value","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"withdraw_all","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}}],"name":"withdraw_funds_from_object","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"zero","visibility":2,"isEntry":false}],"name":"balance"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"bytes","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"bcs","name":"BCS","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"into_remainder_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"peel_address","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"peel_bool","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":5}}],"name":"peel_enum_tag","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"peel_option_address","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":2}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"peel_option_bool","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":7}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"peel_option_u128","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":4}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"peel_option_u16","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":8}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"peel_option_u256","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":5}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"peel_option_u32","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"peel_option_u64","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"peel_option_u8","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":7}}],"name":"peel_u128","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":4}}],"name":"peel_u16","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":8}}],"name":"peel_u256","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":5}}],"name":"peel_u32","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"peel_u64","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"peel_u8","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":9}}],"name":"peel_vec_address","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":2}],"type":9}}],"name":"peel_vec_bool","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"peel_vec_length","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":7}],"type":9}}],"name":"peel_vec_u128","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":4}],"type":9}}],"name":"peel_vec_u16","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":8}],"type":9}}],"name":"peel_vec_u256","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":5}],"type":9}}],"name":"peel_vec_u32","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":9}}],"name":"peel_vec_u64","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"peel_vec_u8","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bcs::BCS"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":9}}],"name":"peel_vec_vec_u8","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"to_bytes","visibility":2,"isEntry":false}],"name":"bcs"}},{"address":"0x2","module":{"datatypes":[{"abilities":[],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"bls12381","name":"G1","kind":1},{"abilities":[],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"bls12381","name":"G2","kind":1},{"abilities":[],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"bls12381","name":"GT","kind":1},{"abilities":[],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"bls12381","name":"Scalar","kind":1},{"abilities":[],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::UncompressedG1","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"bls12381","name":"UncompressedG1","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"bls12381_min_pk_verify","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"bls12381_min_sig_verify","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g1_add","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g1_div","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g1_from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g1_generator","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g1_identity","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g1_mul","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g1_multi_scalar_multiplication","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g1_neg","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g1_sub","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::UncompressedG1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g1_to_uncompressed_g1","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g2_add","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g2_div","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g2_from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g2_generator","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g2_identity","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g2_mul","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g2_multi_scalar_multiplication","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g2_neg","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g2_sub","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"gt_add","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"gt_div","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"gt_generator","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"gt_identity","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"gt_mul","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"gt_neg","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"gt_sub","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"hash_to_g1","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"hash_to_g2","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G2"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::GT"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"pairing","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_add","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_div","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_from_u64","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_inv","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_mul","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_neg","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_one","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_sub","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_zero","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::UncompressedG1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::UncompressedG1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"uncompressed_g1_sum","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::UncompressedG1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bls12381::G1"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"uncompressed_g1_to_g1","visibility":2,"isEntry":false}],"name":"bls12381"}},{"address":"0x2","module":{"datatypes":[{"abilities":[],"typeParameters":[],"fields":[{"name":"ref","position":0,"type":{"typeParameterInstantiation":[],"type":1}},{"name":"obj","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::borrow::Borrow","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"borrow","name":"Borrow","kind":1},{"abilities":[3],"typeParameters":[{"constraints":[3,4],"isPhantom":false}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":1}},{"name":"value","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::borrow::Referent","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"borrow","name":"Referent","kind":1}],"functions":[{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::borrow::Referent"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::borrow::Borrow"}}],"name":"borrow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::borrow::Referent"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"destroy","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::borrow::Referent"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::borrow::Referent"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::borrow::Borrow"}}],"returns":[],"name":"put_back","visibility":2,"isEntry":false}],"name":"borrow"}},{"address":"0x2","module":{"datatypes":[{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"timestamp_ms","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"clock","name":"Clock","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"consensus_commit_prologue","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"create","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"timestamp_ms","visibility":2,"isEntry":false}],"name":"clock"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3,4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"balance","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin","name":"Coin","kind":1},{"abilities":[3,4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"decimals","position":1,"type":{"typeParameterInstantiation":[],"type":3}},{"name":"name","position":2,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"symbol","position":3,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}},{"name":"description","position":4,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"icon_url","position":5,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::url::Url"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin","name":"CoinMetadata","kind":1},{"abilities":[1,2],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"decimals","position":0,"type":{"typeParameterInstantiation":[],"type":3}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CurrencyCreated","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin","name":"CurrencyCreated","kind":1},{"abilities":[3,4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin","name":"DenyCap","kind":1},{"abilities":[3,4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"allow_global_pause","position":1,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin","name":"DenyCapV2","kind":1},{"abilities":[4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"coin_metadata_object","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"deny_cap_object","position":2,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::RegulatedCoinMetadata","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin","name":"RegulatedCoinMetadata","kind":1},{"abilities":[3,4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"total_supply","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin","name":"TreasuryCap","kind":1}],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"allow_global_pause","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"balance","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"balance_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"burn","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::url::Url"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"name":"create_currency","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::url::Url"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"name":"create_regulated_currency","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::url::Url"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"body":{"typeParameterInstantiation":[],"type":2}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"name":"create_regulated_currency_v2","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::RegulatedCoinMetadata"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"deny_cap_id","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCap"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"deny_list_add","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"deny_list_contains","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCap"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"deny_list_remove","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"deny_list_v2_add","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"deny_list_v2_contains_current_epoch","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"deny_list_v2_contains_next_epoch","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"deny_list_v2_disable_global_pause","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"deny_list_v2_enable_global_pause","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"deny_list_v2_is_global_pause_enabled_current_epoch","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"deny_list_v2_is_global_pause_enabled_next_epoch","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"deny_list_v2_remove","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"returns":[],"name":"destroy_metadata","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[],"name":"destroy_zero","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}],"type":9}}],"name":"divide_into_n","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"from_balance","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"get_decimals","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"get_description","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::url::Url"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"get_icon_url","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"get_name","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"name":"get_symbol","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"into_balance","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[],"name":"join","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCap"}},{"body":{"typeParameterInstantiation":[],"type":2}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2"}}],"name":"migrate_regulated_currency_to_v2","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"mint","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"mint_and_transfer","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"mint_balance","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"name":"new_coin_metadata","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":2}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2"}}],"name":"new_deny_cap_v2","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"name":"new_treasury_cap","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[],"name":"put","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"redeem_funds","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"send_funds","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"split","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"name":"supply","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"name":"supply_immut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"name":"supply_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"take","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"total_supply","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"name":"treasury_into_supply","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"returns":[],"name":"update_coin_metadata","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"update_description","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"returns":[],"name":"update_icon_url","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"update_name","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"returns":[],"name":"update_symbol","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"value","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"zero","visibility":2,"isEntry":false}],"name":"coin"}},{"address":"0x2","module":{"datatypes":[{"abilities":[],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Borrow","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"Borrow","kind":1},{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CoinRegistry","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"CoinRegistry","kind":1},{"abilities":[4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"decimals","position":1,"type":{"typeParameterInstantiation":[],"type":3}},{"name":"name","position":2,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"symbol","position":3,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"description","position":4,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"icon_url","position":5,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"supply","position":6,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::SupplyState"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"regulated","position":7,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::RegulatedState"}},{"name":"treasury_cap_id","position":8,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"metadata_cap_id","position":9,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::MetadataCapState"}},{"name":"extra_fields","position":10,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"},{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::ExtraField"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"Currency","kind":1},{"abilities":[],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"currency","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"name":"extra_fields","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}},{"name":"is_otw","position":2,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CurrencyInitializer","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"CurrencyInitializer","kind":1},{"abilities":[1,2,3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CurrencyKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"CurrencyKey","kind":1},{"abilities":[3],"typeParameters":[],"fields":[{"name":"pos0","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName"}},{"name":"pos1","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::ExtraField","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"ExtraField","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::LegacyMetadataKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"LegacyMetadataKey","kind":1},{"abilities":[3,4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::MetadataCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"MetadataCap","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[],"variants":[{"fields":[{"name":"pos0","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"Claimed","position":0},{"fields":[],"name":"Unclaimed","position":1},{"fields":[],"name":"Deleted","position":2}],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::MetadataCapState","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"MetadataCapState","kind":2},{"abilities":[1,2,3],"typeParameters":[],"fields":[],"variants":[{"fields":[{"name":"cap","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"allow_global_pause","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":2}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"variant","position":2,"type":{"typeParameterInstantiation":[],"type":3}}],"name":"Regulated","position":0},{"fields":[],"name":"Unregulated","position":1},{"fields":[],"name":"Unknown","position":2}],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::RegulatedState","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"RegulatedState","kind":2},{"abilities":[3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[],"variants":[{"fields":[{"name":"pos0","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"name":"Fixed","position":0},{"fields":[{"name":"pos0","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Supply"}}],"name":"BurnOnly","position":1},{"fields":[],"name":"Unknown","position":2}],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::SupplyState","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"coin_registry","name":"SupplyState","kind":2}],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Borrow"}}],"name":"borrow_legacy_metadata","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[],"name":"burn","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"returns":[],"name":"burn_balance","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::MetadataCap"}}],"name":"claim_metadata_cap","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"create","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"decimals","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::MetadataCap"}}],"returns":[],"name":"delete_metadata_cap","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"returns":[],"name":"delete_migrated_legacy_metadata","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"deny_cap_id","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"description","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CoinRegistry"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"exists","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CurrencyInitializer"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::MetadataCap"}}],"name":"finalize","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CurrencyInitializer"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"finalize_and_delete_metadata_cap","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CoinRegistry"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer::Receiving"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"finalize_registration","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"icon_url","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_metadata_cap_claimed","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_metadata_cap_deleted","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_migrated_from_legacy","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_regulated","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_supply_burn_only","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_supply_fixed","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CurrencyInitializer"}},{"body":{"typeParameterInstantiation":[],"type":2}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2"}}],"name":"make_regulated","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"returns":[],"name":"make_supply_burn_only","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CurrencyInitializer"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"returns":[],"name":"make_supply_burn_only_init","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"returns":[],"name":"make_supply_fixed","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CurrencyInitializer"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"returns":[],"name":"make_supply_fixed_init","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"metadata_cap_id","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CoinRegistry"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"migrate_legacy_metadata","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::DenyCapV2"}}],"returns":[],"name":"migrate_regulated_state_by_cap","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::RegulatedCoinMetadata"}}],"returns":[],"name":"migrate_regulated_state_by_metadata","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"name","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CoinRegistry"}},{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CurrencyInitializer"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"name":"new_currency","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::CurrencyInitializer"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"name":"new_currency_with_otw","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Borrow"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"return_borrowed_legacy_metadata","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::MetadataCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"set_description","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::MetadataCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"set_icon_url","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::MetadataCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"set_name","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}}],"returns":[],"name":"set_treasury_cap_id","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"symbol","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"name":"to_legacy_metadata","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"total_supply","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"treasury_cap_id","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin_registry::Currency"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::CoinMetadata"}}],"returns":[],"name":"update_from_legacy_metadata","visibility":2,"isEntry":false}],"name":"coin_registry"}},{"address":"0x2","module":{"datatypes":[{"abilities":[4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"config","name":"Config","kind":1},{"abilities":[2,3],"typeParameters":[{"constraints":[1,2,3],"isPhantom":false}],"fields":[{"name":"data","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::SettingData"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Setting","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"config","name":"Setting","kind":1},{"abilities":[2,3],"typeParameters":[{"constraints":[1,2,3],"isPhantom":false}],"fields":[{"name":"newer_value_epoch","position":0,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"newer_value","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"older_value_opt","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::SettingData","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"config","name":"SettingData","kind":1}],"functions":[{"typeParameters":[{"constraints":[]},{"constraints":[1,2,3]},{"constraints":[1,2,3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":2}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":2}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"add_for_next_epoch","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[1,2,3]},{"constraints":[1,2,3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":2}}],"name":"borrow_for_next_epoch_mut","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[1,2,3]},{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"exists_with_type","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[1,2,3]},{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"exists_with_type_for_next_epoch","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}}],"name":"new","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[1,2,3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"read_setting","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[1,2,3]},{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":2}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"read_setting_for_next_epoch","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[4]},{"constraints":[3]},{"constraints":[3]},{"constraints":[1,2,3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":3}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"read_setting_impl","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[1,2,3]},{"constraints":[1,2,3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":2}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"remove_for_next_epoch","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}}],"returns":[],"name":"share","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"transfer","visibility":3,"isEntry":false}],"name":"config"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"pos0","position":0,"type":{"typeParameterInstantiation":[],"type":1}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::AddressKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"deny_list","name":"AddressKey","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"per_type_index","position":0,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"per_type_key","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::ConfigKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"deny_list","name":"ConfigKey","kind":1},{"abilities":[2],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::ConfigWriteCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"deny_list","name":"ConfigWriteCap","kind":1},{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"lists","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"deny_list","name":"DenyList","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::GlobalPauseKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"deny_list","name":"GlobalPauseKey","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"key","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::ConfigKey"}},{"name":"config_id","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::PerTypeConfigCreated","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"deny_list","name":"PerTypeConfigCreated","kind":1},{"abilities":[3,4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"denied_count","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1},{"typeParameterInstantiation":[],"type":6}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}},{"name":"denied_addresses","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9},{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::PerTypeList","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"deny_list","name":"PerTypeList","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"add_per_type_config","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::ConfigWriteCap"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}}],"name":"borrow_per_type_config","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::ConfigWriteCap"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::config::Config"}}],"name":"borrow_per_type_config_mut","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"create","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"migrate_v1_to_v2","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"per_type_exists","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::PerTypeList"}}],"name":"per_type_list","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"v1_add","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"v1_contains","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::PerTypeList"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"v1_per_type_list_add","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::PerTypeList"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"v1_per_type_list_contains","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::PerTypeList"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"v1_per_type_list_remove","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"v1_remove","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"v2_add","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"v2_contains_current_epoch","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"v2_contains_next_epoch","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"v2_disable_global_pause","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"v2_enable_global_pause","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"v2_is_global_pause_enabled_current_epoch","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"v2_is_global_pause_enabled_next_epoch","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::deny_list::DenyList"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"v2_remove","visibility":3,"isEntry":false}],"name":"deny_list"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"pos0","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::derived_object::Claimed","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"derived_object","name":"Claimed","kind":1},{"abilities":[3],"typeParameters":[],"fields":[],"variants":[{"fields":[],"name":"Reserved","position":0}],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::derived_object::ClaimedStatus","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"derived_object","name":"ClaimedStatus","kind":2},{"abilities":[1,2,3],"typeParameters":[{"constraints":[1,2,3],"isPhantom":false}],"fields":[{"name":"pos0","position":0,"type":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::derived_object::DerivedObjectKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"derived_object","name":"DerivedObjectKey","kind":1}],"functions":[{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"claim","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"derive_address","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"exists","visibility":2,"isEntry":false}],"name":"derived_object"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3,4],"typeParameters":[{"constraints":[4],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"fields","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"},{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"name":"version","position":2,"type":{"typeParameterInstantiation":[],"type":4}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"display","name":"Display","kind":1},{"abilities":[1,2],"typeParameters":[{"constraints":[4],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::DisplayCreated","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"display","name":"DisplayCreated","kind":1},{"abilities":[1,2],"typeParameters":[{"constraints":[4],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"version","position":1,"type":{"typeParameterInstantiation":[],"type":4}},{"name":"fields","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"},{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::VersionUpdated","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"display","name":"VersionUpdated","kind":1}],"functions":[{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"add","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"add_internal","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":9}}],"returns":[],"name":"add_multiple","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"create_and_keep","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}}],"name":"create_internal","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}}],"returns":[],"name":"destroy","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"edit","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"},{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"name":"fields","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_authorized","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":9}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}}],"name":"new_with_fields","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"remove","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}}],"returns":[],"name":"update_version","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":4}}],"name":"version","visibility":2,"isEntry":false}],"name":"display"}},{"address":"0x2","module":{"datatypes":[{"abilities":[4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"fields","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"},{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"name":"cap_id","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"display_registry","name":"Display","kind":1},{"abilities":[3,4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"display_registry","name":"DisplayCap","kind":1},{"abilities":[1,2,3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"display_registry","name":"DisplayKey","kind":1},{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayRegistry","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"display_registry","name":"DisplayRegistry","kind":1},{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::SystemMigrationCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"display_registry","name":"SystemMigrationCap","kind":1}],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"cap_id","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayCap"}}],"name":"claim","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayCap"}}],"name":"claim_with_publisher","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayCap"}}],"returns":[],"name":"clear","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"create","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}}],"returns":[],"name":"delete_legacy","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::SystemMigrationCap"}}],"returns":[],"name":"destroy_system_migration_cap","visibility":1,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"},{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"name":"fields","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayRegistry"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display::Display"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayCap"}}],"name":"migrate_v1_to_v2","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"migration_cap_receiver","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayRegistry"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::internal::Permit"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayCap"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayRegistry"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayCap"}}],"name":"new_display","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayRegistry"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayCap"}}],"name":"new_with_publisher","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"set","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}}],"returns":[],"name":"share","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayRegistry"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::SystemMigrationCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}],"type":9}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"system_migration","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::SystemMigrationCap"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"transfer_migration_cap","visibility":1,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::Display"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::display_registry::DisplayCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[],"name":"unset","visibility":2,"isEntry":false}],"name":"display_registry"}},{"address":"0x2","module":{"datatypes":[{"abilities":[4],"typeParameters":[{"constraints":[1,2,3],"isPhantom":false},{"constraints":[3],"isPhantom":false}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"name","position":1,"type":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"name":"value","position":2,"type":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::dynamic_field::Field","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"dynamic_field","name":"Field","kind":1}],"functions":[{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"add","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"add_child_object","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"borrow_child_object","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"borrow_child_object_mut","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"exists","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"exists_","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"exists_with_type","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"field_info","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"field_info_mut","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"has_child_object","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"has_child_object_with_ty","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"hash_type_and_key","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"remove","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"remove_child_object","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"remove_if_exists","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"remove_opt","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":2}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"replace","visibility":2,"isEntry":false}],"name":"dynamic_field"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[{"constraints":[],"isPhantom":false}],"fields":[{"name":"name","position":0,"type":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::dynamic_object_field::Wrapper","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"dynamic_object_field","name":"Wrapper","kind":1}],"functions":[{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"add","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"exists","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"exists_","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"exists_with_type","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"id","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"internal_add","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"internal_borrow","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"internal_borrow_mut","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"internal_exists_with_type","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"internal_remove","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"remove","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"remove_opt","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":2}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"replace","visibility":2,"isEntry":false}],"name":"dynamic_object_field"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"decompress_pubkey","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"secp256k1_ecrecover","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"secp256k1_verify","visibility":2,"isEntry":false}],"name":"ecdsa_k1"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"secp256r1_ecrecover","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"secp256r1_verify","visibility":2,"isEntry":false}],"name":"ecdsa_r1"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"ecvrf_verify","visibility":2,"isEntry":false}],"name":"ecvrf"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"ed25519_verify","visibility":2,"isEntry":false}],"name":"ed25519"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"emit","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"emit_authenticated","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[1,2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"emit_authenticated_impl","visibility":1,"isEntry":false}],"name":"event"}},{"address":"0x2","module":{"datatypes":[{"abilities":[2],"typeParameters":[{"constraints":[3],"isPhantom":true}],"fields":[{"name":"owner","position":0,"type":{"typeParameterInstantiation":[],"type":1}},{"name":"limit","position":1,"type":{"typeParameterInstantiation":[],"type":8}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"funds_accumulator","name":"Withdrawal","kind":1}],"functions":[{"typeParameters":[{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"add_impl","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"add_to_accumulator_address","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":8}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}}],"name":"create_withdrawal","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::internal::Permit"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"redeem","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":8}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"withdraw_from_accumulator_address","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[],"type":8}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}}],"name":"withdraw_from_object","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":8}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"withdraw_impl","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}}],"returns":[],"name":"withdrawal_join","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":8}}],"name":"withdrawal_limit","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"withdrawal_owner","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}},{"body":{"typeParameterInstantiation":[],"type":8}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::funds_accumulator::Withdrawal"}}],"name":"withdrawal_split","visibility":2,"isEntry":false}],"name":"funds_accumulator"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":3}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::Curve","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"groth16","name":"Curve","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"vk_gamma_abc_g1_bytes","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"name":"alpha_g1_beta_g2_bytes","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"name":"gamma_g2_neg_pc_bytes","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"name":"delta_g2_neg_pc_bytes","position":3,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::PreparedVerifyingKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"groth16","name":"PreparedVerifyingKey","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"bytes","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::ProofPoints","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"groth16","name":"ProofPoints","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"bytes","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::PublicProofInputs","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"groth16","name":"PublicProofInputs","kind":1}],"functions":[{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::Curve"}}],"name":"bls12381","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::Curve"}}],"name":"bn254","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::Curve"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::PreparedVerifyingKey"}}],"name":"prepare_verifying_key","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::PreparedVerifyingKey"}}],"name":"prepare_verifying_key_internal","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::ProofPoints"}}],"name":"proof_points_from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::PublicProofInputs"}}],"name":"public_proof_inputs_from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::PreparedVerifyingKey"}}],"name":"pvk_from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::PreparedVerifyingKey"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":9}}],"name":"pvk_to_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::Curve"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::PreparedVerifyingKey"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::PublicProofInputs"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::groth16::ProofPoints"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"verify_groth16_proof","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"verify_groth16_proof_internal","visibility":1,"isEntry":false}],"name":"groth16"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"bytes","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"group_ops","name":"Element","kind":1}],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"add","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"bytes","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"convert","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"div","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"equal","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":2}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"from_bytes","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"hash_to","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"internal_add","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"internal_convert","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"internal_div","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"internal_hash_to","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"internal_mul","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"internal_multi_scalar_mul","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"internal_pairing","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"internal_sub","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"internal_sum","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"internal_validate","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"mul","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"multi_scalar_multiplication","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[]},{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":2}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"pairing","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":2}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[],"name":"set_as_prefix","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"sub","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"sum","visibility":3,"isEntry":false}],"name":"group_ops"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"blake2b256","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"keccak256","visibility":2,"isEntry":false}],"name":"hash"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"decode","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"decode_byte","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"encode","visibility":2,"isEntry":false}],"name":"hex"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"hmac_sha3_256","visibility":2,"isEntry":false}],"name":"hmac"}},{"address":"0x2","module":{"datatypes":[{"abilities":[],"typeParameters":[],"fields":[{"name":"kiosk_id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"item_id","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Borrow","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk","name":"Borrow","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Item","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk","name":"Item","kind":1},{"abilities":[1,2],"typeParameters":[{"constraints":[3,4],"isPhantom":true}],"fields":[{"name":"kiosk","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"id","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::ItemDelisted","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk","name":"ItemDelisted","kind":1},{"abilities":[1,2],"typeParameters":[{"constraints":[3,4],"isPhantom":true}],"fields":[{"name":"kiosk","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"id","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"price","position":2,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::ItemListed","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk","name":"ItemListed","kind":1},{"abilities":[1,2],"typeParameters":[{"constraints":[3,4],"isPhantom":true}],"fields":[{"name":"kiosk","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"id","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"price","position":2,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::ItemPurchased","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk","name":"ItemPurchased","kind":1},{"abilities":[3,4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"profits","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}},{"name":"owner","position":2,"type":{"typeParameterInstantiation":[],"type":1}},{"name":"item_count","position":3,"type":{"typeParameterInstantiation":[],"type":5}},{"name":"allow_extensions","position":4,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk","name":"Kiosk","kind":1},{"abilities":[3,4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"for","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk","name":"KioskOwnerCap","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"is_exclusive","position":1,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Listing","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk","name":"Listing","kind":1},{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Lock","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk","name":"Lock","kind":1},{"abilities":[3,4],"typeParameters":[{"constraints":[3,4],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"kiosk_id","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"item_id","position":2,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"min_price","position":3,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::PurchaseCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk","name":"PurchaseCap","kind":1}],"functions":[{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"borrow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"borrow_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Borrow"}}],"name":"borrow_val","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"close_and_withdraw","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"default","visibility":1,"isEntry":true},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[],"name":"delist","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"has_access","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"has_item","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"has_item_with_type","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_listed","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_listed_exclusively","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_locked","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":5}}],"name":"item_count","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"kiosk_owner_cap_for","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[],"name":"list","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::PurchaseCap"}}],"name":"list_with_purchase_cap","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"lock","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"lock_internal","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"owner","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"place","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[],"name":"place_and_list","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"place_internal","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"profits_amount","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"profits_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferRequest"}}],"name":"purchase","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::PurchaseCap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"purchase_cap_item","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::PurchaseCap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"purchase_cap_kiosk","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::PurchaseCap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"purchase_cap_min_price","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::PurchaseCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferRequest"}}],"name":"purchase_with_cap","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::PurchaseCap"}}],"returns":[],"name":"return_purchase_cap","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Borrow"}}],"returns":[],"name":"return_val","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":2}}],"returns":[],"name":"set_allow_extensions","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"set_owner","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"set_owner_custom","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"take","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"uid","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"uid_mut","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"uid_mut_as_owner","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"uid_mut_internal","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"withdraw","visibility":2,"isEntry":false}],"name":"kiosk"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3],"typeParameters":[],"fields":[{"name":"storage","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}},{"name":"permissions","position":1,"type":{"typeParameterInstantiation":[],"type":7}},{"name":"is_enabled","position":2,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk_extension::Extension","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk_extension","name":"Extension","kind":1},{"abilities":[1,2,3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk_extension::ExtensionKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"kiosk_extension","name":"ExtensionKey","kind":1}],"functions":[{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}},{"body":{"typeParameterInstantiation":[],"type":7}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"add","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"can_lock","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"can_place","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}}],"returns":[],"name":"disable","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}}],"returns":[],"name":"enable","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk_extension::Extension"}}],"name":"extension","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk_extension::Extension"}}],"name":"extension_mut","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_enabled","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_installed","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]},{"constraints":[3,4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}}],"returns":[],"name":"lock","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]},{"constraints":[3,4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}}],"returns":[],"name":"place","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::KioskOwnerCap"}}],"returns":[],"name":"remove","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}}],"name":"storage","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::kiosk::Kiosk"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::bag::Bag"}}],"name":"storage_mut","visibility":2,"isEntry":false}],"name":"kiosk_extension"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3,4],"typeParameters":[{"constraints":[1,2,3],"isPhantom":false},{"constraints":[3],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"size","position":1,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"head","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"tail","position":3,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"linked_table","name":"LinkedTable","kind":1},{"abilities":[3],"typeParameters":[{"constraints":[1,2,3],"isPhantom":false},{"constraints":[3],"isPhantom":false}],"fields":[{"name":"prev","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"next","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"value","position":2,"type":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::Node","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"linked_table","name":"Node","kind":1}],"functions":[{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"back","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"contains","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}}],"returns":[],"name":"destroy_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[2,3]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}}],"returns":[],"name":"drop","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"front","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"length","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"next","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"pop_back","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"pop_front","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"prev","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"push_back","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"push_front","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::linked_table::LinkedTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"remove","visibility":2,"isEntry":false}],"name":"linked_table"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"diff","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"divide_and_round_up","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"max","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"min","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"pow","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"sqrt","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":7}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":7}}],"name":"sqrt_u128","visibility":2,"isEntry":false}],"name":"math"}},{"address":"0x2","module":{"datatypes":[{"abilities":[2],"typeParameters":[],"fields":[{"name":"module_id","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"name":"timestamp","position":1,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"digest","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"name":"pcrs","position":3,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::PCREntry"}],"type":9}},{"name":"public_key","position":4,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"user_data","position":5,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"nonce","position":6,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"nitro_attestation","name":"NitroAttestationDocument","kind":1},{"abilities":[2],"typeParameters":[],"fields":[{"name":"index","position":0,"type":{"typeParameterInstantiation":[],"type":3}},{"name":"value","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::PCREntry","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"nitro_attestation","name":"PCREntry","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"digest","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::PCREntry"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"index","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::clock::Clock"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument"}}],"name":"load_nitro_attestation","visibility":1,"isEntry":true},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument"}}],"name":"load_nitro_attestation_internal","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"module_id","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"nonce","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::PCREntry"}],"type":9}}],"name":"pcrs","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"public_key","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":6}}],"name":"timestamp","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::NitroAttestationDocument"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"user_data","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::nitro_attestation::PCREntry"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"value","visibility":2,"isEntry":false}],"name":"nitro_attestation"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"bytes","position":0,"type":{"typeParameterInstantiation":[],"type":1}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"object","name":"ID","kind":1},{"abilities":[3],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"object","name":"UID","kind":1}],"functions":[{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"address_alias_state","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"authenticator_state","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"borrow_id","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"borrow_uid","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"bridge","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"clock","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"returns":[],"name":"delete","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"delete_impl","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"id","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"id_address","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"id_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"id_from_address","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"id_from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"id_to_address","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"id_to_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"new_uid_from_hash","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"randomness_state","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"record_new_uid","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"sui_accumulator_root_address","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"sui_accumulator_root_object_id","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"sui_coin_registry_address","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"sui_coin_registry_object_id","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"sui_deny_list_object_id","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"sui_display_registry_address","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"sui_display_registry_object_id","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"sui_system_state","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"uid_as_inner","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"uid_to_address","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"uid_to_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"uid_to_inner","visibility":2,"isEntry":false}],"name":"object"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3,4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"size","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"object_bag","name":"ObjectBag","kind":1}],"functions":[{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"add","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"contains","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"contains_with_type","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}}],"returns":[],"name":"destroy_empty","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_empty","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"length","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"remove","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_bag::ObjectBag"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"value_id","visibility":2,"isEntry":false}],"name":"object_bag"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3,4],"typeParameters":[{"constraints":[1,2,3],"isPhantom":true},{"constraints":[3,4],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"size","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"object_table","name":"ObjectTable","kind":1}],"functions":[{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"add","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"contains","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable"}}],"returns":[],"name":"destroy_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"length","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"remove","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3,4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object_table::ObjectTable"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"value_id","visibility":2,"isEntry":false}],"name":"object_table"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3,4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"package","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}},{"name":"module_name","position":2,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"package","name":"Publisher","kind":1},{"abilities":[3,4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"package","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"version","position":2,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"policy","position":3,"type":{"typeParameterInstantiation":[],"type":3}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"package","name":"UpgradeCap","kind":1},{"abilities":[],"typeParameters":[],"fields":[{"name":"cap","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"package","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeReceipt","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"package","name":"UpgradeReceipt","kind":1},{"abilities":[],"typeParameters":[],"fields":[{"name":"cap","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"package","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"policy","position":2,"type":{"typeParameterInstantiation":[],"type":3}},{"name":"digest","position":3,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeTicket","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"package","name":"UpgradeTicket","kind":1}],"functions":[{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"additive_policy","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeCap"}},{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeTicket"}}],"name":"authorize_upgrade","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}}],"returns":[],"name":"burn_publisher","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}}],"name":"claim","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"claim_and_keep","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeReceipt"}}],"returns":[],"name":"commit_upgrade","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"compatible_policy","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"dep_only_policy","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"from_module","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"from_package","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeCap"}}],"returns":[],"name":"make_immutable","visibility":2,"isEntry":true},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeCap"}}],"returns":[],"name":"only_additive_upgrades","visibility":2,"isEntry":true},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeCap"}}],"returns":[],"name":"only_dep_upgrades","visibility":2,"isEntry":true},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"name":"published_module","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"name":"published_package","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeReceipt"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"receipt_cap","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeReceipt"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"receipt_package","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeCap"}},{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[],"name":"restrict","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeTicket"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"ticket_digest","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeTicket"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"ticket_package","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeTicket"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"ticket_policy","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeCap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"upgrade_package","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeCap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"upgrade_policy","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::UpgradeCap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"version","visibility":2,"isEntry":false}],"name":"package"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2],"typeParameters":[],"fields":[{"name":"default","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Permissions"}},{"name":"members","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1},{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Permissions"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Party","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"party","name":"Party","kind":1},{"abilities":[1,2],"typeParameters":[],"fields":[{"name":"pos0","position":0,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Permissions","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"party","name":"Permissions","kind":1}],"functions":[{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Party"}}],"name":"empty","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Party"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":9}}],"name":"into_native","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Party"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_single_owner","visibility":3,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Party"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Permissions"}}],"returns":[],"name":"set_permissions","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Party"}}],"name":"single_owner","visibility":2,"isEntry":false}],"name":"party"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"divide_and_keep","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[],"name":"join","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}],"type":9}}],"returns":[],"name":"join_vec","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"join_vec_and_transfer","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"keep","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"split","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"split_and_transfer","visibility":2,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":9}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"split_vec","visibility":2,"isEntry":true}],"name":"pay"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":8}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":8}}],"name":"poseidon_bn254","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"poseidon_bn254_internal","visibility":1,"isEntry":false}],"name":"poseidon"}},{"address":"0x2","module":{"datatypes":[{"abilities":[2,3],"typeParameters":[{"constraints":[2],"isPhantom":false}],"fields":[{"name":"priority","position":0,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"value","position":1,"type":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::Entry","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"priority_queue","name":"Entry","kind":1},{"abilities":[2,3],"typeParameters":[{"constraints":[2],"isPhantom":false}],"fields":[{"name":"entries","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::Entry"}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::PriorityQueue","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"priority_queue","name":"PriorityQueue","kind":1}],"functions":[{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::Entry"}],"type":9}}],"name":"create_entries","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::PriorityQueue"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"insert","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::Entry"}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[],"name":"max_heapify_recursive","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::Entry"}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::PriorityQueue"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::Entry"}}],"name":"new_entry","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::PriorityQueue"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"pop_max","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::PriorityQueue"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":9}}],"name":"priorities","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::priority_queue::Entry"}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[],"name":"restore_heap_recursive","visibility":1,"isEntry":false}],"name":"priority_queue"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_feature_enabled","visibility":3,"isEntry":false}],"name":"protocol_config"}},{"address":"0x2","module":{"datatypes":[],"functions":[],"name":"prover"}},{"address":"0x2","module":{"datatypes":[{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"inner","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::Versioned"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::Random","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"random","name":"Random","kind":1},{"abilities":[2],"typeParameters":[],"fields":[{"name":"seed","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"name":"counter","position":1,"type":{"typeParameterInstantiation":[],"type":4}},{"name":"buffer","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"random","name":"RandomGenerator","kind":1},{"abilities":[3],"typeParameters":[],"fields":[{"name":"version","position":0,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"epoch","position":1,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"randomness_round","position":2,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"random_bytes","position":3,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomInner","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"random","name":"RandomInner","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"create","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"derive_next_block","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"generate_bool","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}},{"body":{"typeParameterInstantiation":[],"type":4}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"generate_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":7}}],"name":"generate_u128","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}},{"body":{"typeParameterInstantiation":[],"type":7}},{"body":{"typeParameterInstantiation":[],"type":7}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":7}}],"name":"generate_u128_in_range","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":4}}],"name":"generate_u16","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}},{"body":{"typeParameterInstantiation":[],"type":4}},{"body":{"typeParameterInstantiation":[],"type":4}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":4}}],"name":"generate_u16_in_range","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":8}}],"name":"generate_u256","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":5}}],"name":"generate_u32","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}},{"body":{"typeParameterInstantiation":[],"type":5}},{"body":{"typeParameterInstantiation":[],"type":5}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":5}}],"name":"generate_u32_in_range","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"generate_u64","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"generate_u64_in_range","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"generate_u8","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}},{"body":{"typeParameterInstantiation":[],"type":3}},{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":3}}],"name":"generate_u8_in_range","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::Random"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomInner"}}],"name":"load_inner","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::Random"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomInner"}}],"name":"load_inner_mut","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::Random"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}}],"name":"new_generator","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::RandomGenerator"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":9}}],"returns":[],"name":"shuffle","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::random::Random"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"update_randomness_state","visibility":1,"isEntry":false}],"name":"random"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"verify_bulletproofs_ristretto255","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":3}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"verify_bulletproofs_with_dst_ristretto255","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":3}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"verify_bulletproofs_with_dst_ristretto255_internal","visibility":1,"isEntry":false}],"name":"rangeproofs"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"ristretto255","name":"G","kind":1},{"abilities":[3],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"ristretto255","name":"Scalar","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g_add","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g_div","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g_from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g_generator","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g_identity","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g_mul","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g_neg","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::G"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"g_sub","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_add","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_div","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_from_u64","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_inv","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_mul","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_neg","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_one","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_sub","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::ristretto255::Scalar"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::group_ops::Element"}}],"name":"scalar_zero","visibility":2,"isEntry":false}],"name":"ristretto255"}},{"address":"0x2","module":{"datatypes":[{"abilities":[2],"typeParameters":[],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"sui","name":"SUI","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"name":"new","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"transfer","visibility":2,"isEntry":true}],"name":"sui"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3,4],"typeParameters":[{"constraints":[1,2,3],"isPhantom":true},{"constraints":[3],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"size","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"table","name":"Table","kind":1}],"functions":[{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"add","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"borrow_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"contains","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}}],"returns":[],"name":"destroy_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[2,3]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}}],"returns":[],"name":"drop","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"length","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2,3]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"remove","visibility":2,"isEntry":false}],"name":"table"}},{"address":"0x2","module":{"datatypes":[{"abilities":[3],"typeParameters":[{"constraints":[3],"isPhantom":true}],"fields":[{"name":"contents","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6},{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table::Table"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"table_vec","name":"TableVec","kind":1}],"functions":[{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"borrow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"borrow_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}}],"returns":[],"name":"destroy_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[2,3]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}}],"returns":[],"name":"drop","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}}],"name":"empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"length","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"pop_back","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"push_back","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}}],"name":"singleton","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[],"name":"swap","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::table_vec::TableVec"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"swap_remove","visibility":2,"isEntry":false}],"name":"table_vec"}},{"address":"0x2","module":{"datatypes":[{"abilities":[],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"name","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"amount","position":1,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"sender","position":2,"type":{"typeParameterInstantiation":[],"type":1}},{"name":"recipient","position":3,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"spent_balance","position":4,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"name":"approvals","position":5,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"token","name":"ActionRequest","kind":1},{"abilities":[1,2,3],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"is_protected","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::RuleKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"token","name":"RuleKey","kind":1},{"abilities":[4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"balance","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"token","name":"Token","kind":1},{"abilities":[4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"spent_balance","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}},{"name":"rules","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"},{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"token","name":"TokenPolicy","kind":1},{"abilities":[3,4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"for","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"token","name":"TokenPolicyCap","kind":1},{"abilities":[1,2],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"is_mutable","position":1,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCreated","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"token","name":"TokenPolicyCreated","kind":1}],"functions":[{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"action","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"add_approval","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]},{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCap"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":2}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"add_rule_config","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"add_rule_for_action","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"allow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"amount","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"name":"approvals","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}}],"returns":[],"name":"burn","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"confirm_request","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"confirm_request_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"confirm_with_policy_cap","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"confirm_with_treasury_cap","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}}],"returns":[],"name":"destroy_zero","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"disallow","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"flush","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"name":"from_coin","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"from_coin_action","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"has_rule_config","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[]},{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"has_rule_config_with_type","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_allowed","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}}],"returns":[],"name":"join","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"keep","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::RuleKey"}}],"name":"key","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}}],"name":"mint","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::TreasuryCap"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCap"}}],"name":"new_policy","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"name":"new_request","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"recipient","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[]},{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCap"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":2}}],"name":"remove_rule_config","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCap"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"remove_rule_for_action","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]},{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":2}}],"name":"rule_config","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]},{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicyCap"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":2}}],"name":"rule_config_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"name":"rules","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"sender","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}}],"returns":[],"name":"share_policy","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"name":"spend","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"spend_action","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"spent","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::TokenPolicy"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"spent_balance","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}}],"name":"split","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"name":"to_coin","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"to_coin_action","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}},{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::ActionRequest"}}],"name":"transfer","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"transfer_action","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"value","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::token::Token"}}],"name":"zero","visibility":2,"isEntry":false}],"name":"token"}},{"address":"0x2","module":{"datatypes":[{"abilities":[2],"typeParameters":[{"constraints":[4],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"version","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer::Receiving","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"transfer","name":"Receiving","kind":1}],"functions":[{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"freeze_object","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"freeze_object_impl","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Party"}}],"returns":[],"name":"party_transfer","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":9}}],"returns":[],"name":"party_transfer_impl","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"public_freeze_object","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::party::Party"}}],"returns":[],"name":"public_party_transfer","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer::Receiving"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"public_receive","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"public_share_object","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3,4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"public_transfer","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer::Receiving"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"receive","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"receive_impl","visibility":1,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer::Receiving"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"receiving_object_id","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"share_object","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"share_object_impl","visibility":3,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"transfer","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[4]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":1}}],"returns":[],"name":"transfer_impl","visibility":3,"isEntry":false}],"name":"transfer"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[{"constraints":[2],"isPhantom":true}],"fields":[{"name":"dummy_field","position":0,"type":{"typeParameterInstantiation":[],"type":2}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::RuleKey","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"transfer_policy","name":"RuleKey","kind":1},{"abilities":[3,4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"balance","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::balance::Balance"}},{"name":"rules","position":2,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"transfer_policy","name":"TransferPolicy","kind":1},{"abilities":[3,4],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"policy_id","position":1,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicyCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"transfer_policy","name":"TransferPolicyCap","kind":1},{"abilities":[1,2],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicyCreated","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"transfer_policy","name":"TransferPolicyCreated","kind":1},{"abilities":[1,2],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicyDestroyed","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"transfer_policy","name":"TransferPolicyDestroyed","kind":1},{"abilities":[],"typeParameters":[{"constraints":[],"isPhantom":true}],"fields":[{"name":"item","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"paid","position":1,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"from","position":2,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"receipts","position":3,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferRequest","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"transfer_policy","name":"TransferRequest","kind":1}],"functions":[{"typeParameters":[{"constraints":[]},{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferRequest"}}],"returns":[],"name":"add_receipt","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]},{"constraints":[2,3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicyCap"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":2}}],"returns":[],"name":"add_rule","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"returns":[],"name":"add_to_balance","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferRequest"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"confirm_request","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"default","visibility":1,"isEntry":true},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicyCap"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"destroy_and_withdraw","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferRequest"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"from","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]},{"constraints":[2,3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":2}}],"name":"get_rule","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"has_rule","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferRequest"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"name":"item","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::package::Publisher"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicyCap"}}],"name":"new","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferRequest"}}],"name":"new_request","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferRequest"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"paid","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]},{"constraints":[2]},{"constraints":[2,3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicyCap"}}],"returns":[],"name":"remove_rule","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::type_name::TypeName"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"name":"rules","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"uid","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicyCap"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}}],"name":"uid_mut_as_owner","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicy"}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::transfer_policy::TransferPolicyCap"}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI"}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::coin::Coin"}}],"name":"withdraw","visibility":2,"isEntry":false}],"name":"transfer_policy"}},{"address":"0x2","module":{"datatypes":[{"abilities":[2],"typeParameters":[],"fields":[{"name":"sender","position":0,"type":{"typeParameterInstantiation":[],"type":1}},{"name":"tx_hash","position":1,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"name":"epoch","position":2,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"epoch_timestamp_ms","position":3,"type":{"typeParameterInstantiation":[],"type":6}},{"name":"ids_created","position":4,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"tx_context","name":"TxContext","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"derive_id","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"digest","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"epoch","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"epoch_timestamp_ms","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"fresh_id","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"fresh_object_address","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"gas_price","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"native_epoch","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"native_epoch_timestamp_ms","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"native_gas_budget","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"native_gas_price","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"native_ids_created","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"native_rgp","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"native_sender","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":9}}],"name":"native_sponsor","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"option_sponsor","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"reference_gas_price","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"sender","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"sponsor","visibility":2,"isEntry":false}],"name":"tx_context"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[{"constraints":[2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_one_time_witness","visibility":2,"isEntry":false}],"name":"types"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[],"fields":[{"name":"url","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::url::Url","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"url","name":"Url","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::url::Url"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"name":"inner_url","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::url::Url"}}],"name":"new_unsafe","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::url::Url"}}],"name":"new_unsafe_from_bytes","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::url::Url"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::ascii::String"}}],"returns":[],"name":"update","visibility":2,"isEntry":false}],"name":"url"}},{"address":"0x2","module":{"datatypes":[],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"hash_to_input","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"name":"hash_to_input_internal","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"vdf_verify","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"vdf_verify_internal","visibility":1,"isEntry":false}],"name":"vdf"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[{"constraints":[1],"isPhantom":false},{"constraints":[],"isPhantom":false}],"fields":[{"name":"key","position":0,"type":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"name":"value","position":1,"type":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::Entry","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"vec_map","name":"Entry","kind":1},{"abilities":[1,2,3],"typeParameters":[{"constraints":[1],"isPhantom":false},{"constraints":[],"isPhantom":false}],"fields":[{"name":"contents","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::Entry"}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"vec_map","name":"VecMap","kind":1}],"functions":[{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"contains","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"returns":[],"name":"destroy_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"name":"empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"name":"from_keys_values","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"get","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"get_entry_by_idx","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"get_entry_by_idx_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"get_idx","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":6}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"get_idx_opt","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"get_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"returns":[],"name":"insert","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":9}},{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":9}}],"name":"into_keys_values","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":9}}],"name":"keys","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"length","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"pop","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"remove","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"body":{"typeParameterInstantiation":[],"type":6}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":1}}],"name":"remove_entry_by_idx","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"size","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1]},{"constraints":[1]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0},{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_map::VecMap"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":1}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::option::Option"}}],"name":"try_get","visibility":2,"isEntry":false}],"name":"vec_map"}},{"address":"0x2","module":{"datatypes":[{"abilities":[1,2,3],"typeParameters":[{"constraints":[1,2],"isPhantom":false}],"fields":[{"name":"contents","position":0,"type":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":9}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"vec_set","name":"VecSet","kind":1}],"functions":[{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"contains","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"name":"empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"name":"from_keys","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"insert","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":9}}],"name":"into_keys","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"is_empty","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":9}}],"name":"keys","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"length","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[],"name":"remove","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"returns":[{"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"name":"singleton","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[1,2]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":11,"typeParameter":0}],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::vec_set::VecSet"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"size","visibility":2,"isEntry":false}],"name":"vec_set"}},{"address":"0x2","module":{"datatypes":[{"abilities":[],"typeParameters":[],"fields":[{"name":"versioned_id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::ID"}},{"name":"old_version","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::VersionChangeCap","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"versioned","name":"VersionChangeCap","kind":1},{"abilities":[3,4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"version","position":1,"type":{"typeParameterInstantiation":[],"type":6}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::Versioned","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"versioned","name":"Versioned","kind":1}],"functions":[{"typeParameters":[{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::Versioned"}}],"name":"create","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::Versioned"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"destroy","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::Versioned"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"load_value","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::Versioned"}}],"returns":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}}],"name":"load_value_mut","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::Versioned"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::VersionChangeCap"}}],"name":"remove_value_for_upgrade","visibility":2,"isEntry":false},{"typeParameters":[{"constraints":[3]}],"parameters":[{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::Versioned"}},{"body":{"typeParameterInstantiation":[],"type":6}},{"body":{"typeParameterInstantiation":[],"type":11,"typeParameter":0}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::VersionChangeCap"}}],"returns":[],"name":"upgrade","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::versioned::Versioned"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":6}}],"name":"version","visibility":2,"isEntry":false}],"name":"versioned"}},{"address":"0x2","module":{"datatypes":[{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"owner","position":1,"type":{"typeParameterInstantiation":[],"type":1}},{"name":"key_claim_name","position":2,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"key_claim_value","position":3,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"issuer","position":4,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"name":"audience","position":5,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_id::VerifiedID","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"zklogin_verified_id","name":"VerifiedID","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_id::VerifiedID"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"audience","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":8}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"check_zklogin_id","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}},{"body":{"typeParameterInstantiation":[],"type":8}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"check_zklogin_id_internal","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_id::VerifiedID"}}],"returns":[],"name":"delete","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_id::VerifiedID"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"issuer","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_id::VerifiedID"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"key_claim_name","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_id::VerifiedID"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"key_claim_value","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_id::VerifiedID"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"owner","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"body":{"typeParameterInstantiation":[],"type":8}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"verify_zklogin_id","visibility":2,"isEntry":false}],"name":"zklogin_verified_id"}},{"address":"0x2","module":{"datatypes":[{"abilities":[4],"typeParameters":[],"fields":[{"name":"id","position":0,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::object::UID"}},{"name":"owner","position":1,"type":{"typeParameterInstantiation":[],"type":1}},{"name":"issuer","position":2,"type":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"variants":[],"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_issuer::VerifiedIssuer","definingId":"0x0000000000000000000000000000000000000000000000000000000000000002","module":"zklogin_verified_issuer","name":"VerifiedIssuer","kind":1}],"functions":[{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":8}},{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"check_zklogin_issuer","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":1}},{"body":{"typeParameterInstantiation":[],"type":8}},{"reference":1,"body":{"typeParameterInstantiation":[{"typeParameterInstantiation":[],"type":3}],"type":9}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":2}}],"name":"check_zklogin_issuer_internal","visibility":1,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_issuer::VerifiedIssuer"}}],"returns":[],"name":"delete","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_issuer::VerifiedIssuer"}}],"returns":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}}],"name":"issuer","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"reference":1,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::zklogin_verified_issuer::VerifiedIssuer"}}],"returns":[{"body":{"typeParameterInstantiation":[],"type":1}}],"name":"owner","visibility":2,"isEntry":false},{"typeParameters":[],"parameters":[{"body":{"typeParameterInstantiation":[],"type":8}},{"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000001::string::String"}},{"reference":2,"body":{"typeParameterInstantiation":[],"type":10,"typeName":"0x0000000000000000000000000000000000000000000000000000000000000002::tx_context::TxContext"}}],"returns":[],"name":"verify_zklogin_issuer","visibility":2,"isEntry":false}],"name":"zklogin_verified_issuer"}}]', ); export function loadAllTypes(coder: MoveCoder) { _0x1.loadAllTypes(coder); for (const m of Object.values(MODULES)) { coder.load(m as any, "0x2"); } } loadAllTypes(defaultMoveCoder(SuiNetwork.MAIN_NET)); loadAllTypes(defaultMoveCoder(SuiNetwork.TEST_NET));