UNPKG

@xlink-network/xlink-sdk

Version:
1,239 lines (1,237 loc) 150 kB
import * as clarity_codegen from 'clarity-codegen'; import { StacksNetwork } from '@stacks/network'; import { BigNumber, BigNumberSource } from '../utils/BigNumber.js'; import { KnownChainId, KnownTokenId } from '../utils/types/knownIds.js'; import { StacksContractAddress } from '../xlinkSdkUtils/types.js'; import { stxContractDeployers } from './stxContractAddresses.js'; import 'big.js'; import '../utils/typeHelpers.js'; import '../utils/buildSupportedRoutes.js'; import '../types.internal-BwEnb5-y.js'; import 'viem'; import '../evmUtils/evmContractAddresses.js'; declare const numberFromStacksContractNumber: (num: bigint, decimals?: number) => BigNumber; declare const numberToStacksContractNumber: (num: BigNumberSource, decimals?: number) => bigint; declare const composeTxXLINK: clarity_codegen.ComposeTxOptionsFn<{ "meta-peg-out-endpoint-v2-04": { readonly 'claim-peg-out': { readonly input: readonly [{ readonly name: "request-id"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "fulfilled-by"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'finalize-peg-out': { readonly input: readonly [{ readonly name: "request-id"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "tx"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }, { readonly name: "output-idx"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "offset-idx"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "token-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'finalize-peg-out-on-index': { readonly input: readonly [{ readonly name: "request-id"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "tx"; readonly type: clarity_codegen.Transcoder<{ amt: bigint; 'bitcoin-tx': Uint8Array; decimals: bigint; from: Uint8Array; 'from-bal': bigint; offset: bigint; output: bigint; tick: string; to: Uint8Array; 'to-bal': bigint; }>; }, { readonly name: "block"; readonly type: clarity_codegen.Transcoder<{ header: Uint8Array; height: bigint; }>; }, { readonly name: "proof"; readonly type: clarity_codegen.Transcoder<{ hashes: Uint8Array[]; 'tree-depth': bigint; 'tx-index': bigint; }>; }, { readonly name: "signature-packs"; readonly type: clarity_codegen.Transcoder<{ signature: Uint8Array; signer: string; 'tx-hash': Uint8Array; }[]>; }, { readonly name: "token-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly pause: { readonly input: readonly [{ readonly name: "new-paused"; readonly type: clarity_codegen.Transcoder<boolean>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'request-peg-out': { readonly input: readonly [{ readonly name: "amount"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "peg-out-address"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }, { readonly name: "token-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }, { readonly name: "the-chain-id"; readonly type: clarity_codegen.Transcoder<bigint>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'revoke-peg-out': { readonly input: readonly [{ readonly name: "request-id"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "token-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'set-fee-to-address': { readonly input: readonly [{ readonly name: "new-fee-to-address"; readonly type: clarity_codegen.Transcoder<string>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'transfer-all-to': { readonly input: readonly [{ readonly name: "new-owner"; readonly type: clarity_codegen.Transcoder<string>; }, { readonly name: "token-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'transfer-all-to-many': { readonly input: readonly [{ readonly name: "new-owner"; readonly type: clarity_codegen.Transcoder<string>; }, { readonly name: "token-traits"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`[]>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<clarity_codegen.Response<boolean>[]>>; readonly mode: "public"; }; readonly 'get-fee-to-address': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<string>; readonly mode: "readonly"; }; readonly 'get-pair-details': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<{ approved: boolean; 'no-burn': boolean; 'peg-in-fee': bigint; 'peg-in-paused': boolean; 'peg-out-fee': bigint; 'peg-out-gas-fee': bigint; 'peg-out-paused': boolean; tick: string; } | undefined>; readonly mode: "readonly"; }; readonly 'get-pair-details-many': { readonly input: readonly [{ readonly name: "pairs"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }[]>; }]; readonly output: clarity_codegen.Transcoder<({ approved: boolean; 'no-burn': boolean; 'peg-in-fee': bigint; 'peg-in-paused': boolean; 'peg-out-fee': bigint; 'peg-out-gas-fee': bigint; 'peg-out-paused': boolean; tick: string; } | undefined)[]>; readonly mode: "readonly"; }; readonly 'get-pair-details-or-fail': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ approved: boolean; 'no-burn': boolean; 'peg-in-fee': bigint; 'peg-in-paused': boolean; 'peg-out-fee': bigint; 'peg-out-gas-fee': bigint; 'peg-out-paused': boolean; tick: string; }>>; readonly mode: "readonly"; }; readonly 'get-peg-in-sent-or-default': { readonly input: readonly [{ readonly name: "bitcoin-tx"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }, { readonly name: "output"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "offset"; readonly type: clarity_codegen.Transcoder<bigint>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'get-request': { readonly input: readonly [{ readonly name: "request-id"; readonly type: clarity_codegen.Transcoder<bigint>; }]; readonly output: clarity_codegen.Transcoder<{ 'amount-net': bigint; claimed: bigint; 'claimed-by': string; fee: bigint; finalized: boolean; 'fulfilled-by': Uint8Array; 'gas-fee': bigint; 'peg-out-address': Uint8Array; 'requested-at': bigint; 'requested-at-burn-height': bigint; 'requested-by': string; revoked: boolean; tick: string; token: string; } | undefined>; readonly mode: "readonly"; }; readonly 'get-request-claim-grace-period': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<bigint>; readonly mode: "readonly"; }; readonly 'get-request-many': { readonly input: readonly [{ readonly name: "request-ids"; readonly type: clarity_codegen.Transcoder<bigint[]>; }]; readonly output: clarity_codegen.Transcoder<({ 'amount-net': bigint; claimed: bigint; 'claimed-by': string; fee: bigint; finalized: boolean; 'fulfilled-by': Uint8Array; 'gas-fee': bigint; 'peg-out-address': Uint8Array; 'requested-at': bigint; 'requested-at-burn-height': bigint; 'requested-by': string; revoked: boolean; tick: string; token: string; } | undefined)[]>; readonly mode: "readonly"; }; readonly 'get-request-or-fail': { readonly input: readonly [{ readonly name: "request-id"; readonly type: clarity_codegen.Transcoder<bigint>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ 'amount-net': bigint; claimed: bigint; 'claimed-by': string; fee: bigint; finalized: boolean; 'fulfilled-by': Uint8Array; 'gas-fee': bigint; 'peg-out-address': Uint8Array; 'requested-at': bigint; 'requested-at-burn-height': bigint; 'requested-by': string; revoked: boolean; tick: string; token: string; }>>; readonly mode: "readonly"; }; readonly 'get-request-revoke-grace-period': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<bigint>; readonly mode: "readonly"; }; readonly 'get-tick-to-pair-or-fail': { readonly input: readonly [{ readonly name: "tick"; readonly type: clarity_codegen.Transcoder<string>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ 'chain-id': bigint; token: string; }>>; readonly mode: "readonly"; }; readonly 'is-dao-or-extension': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "readonly"; }; readonly 'is-fulfill-address-approved': { readonly input: readonly [{ readonly name: "address"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'is-paused': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'is-peg-in-address-approved': { readonly input: readonly [{ readonly name: "address"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'validate-peg-out': { readonly input: readonly [{ readonly name: "amount"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ fee: bigint; 'token-details': { approved: boolean; 'no-burn': boolean; 'peg-in-fee': bigint; 'peg-in-paused': boolean; 'peg-out-fee': bigint; 'peg-out-gas-fee': bigint; 'peg-out-paused': boolean; tick: string; }; }>>; readonly mode: "readonly"; }; readonly 'fee-to-address': { readonly input: clarity_codegen.Transcoder<void>; readonly output: clarity_codegen.Transcoder<string>; readonly mode: "variable"; }; readonly paused: { readonly input: clarity_codegen.Transcoder<void>; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "variable"; }; }; "meta-peg-in-endpoint-v2-04": { readonly 'finalize-peg-in-cross': { readonly input: readonly [{ readonly name: "commit-tx"; readonly type: clarity_codegen.Transcoder<{ 'fee-idx': bigint | undefined; 'output-idx': bigint; tx: Uint8Array; }>; }, { readonly name: "reveal-tx"; readonly type: clarity_codegen.Transcoder<{ 'order-idx': bigint; tx: Uint8Array; }>; }, { readonly name: "reveal-block"; readonly type: clarity_codegen.Transcoder<{ header: Uint8Array; height: bigint; }>; }, { readonly name: "reveal-proof"; readonly type: clarity_codegen.Transcoder<{ hashes: Uint8Array[]; 'tree-depth': bigint; 'tx-index': bigint; }>; }, { readonly name: "token-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }, { readonly name: "token-out-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'finalize-peg-in-cross-on-index': { readonly input: readonly [{ readonly name: "tx"; readonly type: clarity_codegen.Transcoder<{ amt: bigint; 'bitcoin-tx': Uint8Array; decimals: bigint; from: Uint8Array; 'from-bal': bigint; output: bigint; tick: string; to: Uint8Array; 'to-bal': bigint; }>; }, { readonly name: "block"; readonly type: clarity_codegen.Transcoder<{ header: Uint8Array; height: bigint; }>; }, { readonly name: "proof"; readonly type: clarity_codegen.Transcoder<{ hashes: Uint8Array[]; 'tree-depth': bigint; 'tx-index': bigint; }>; }, { readonly name: "signature-packs"; readonly type: clarity_codegen.Transcoder<{ signature: Uint8Array; signer: string; 'tx-hash': Uint8Array; }[]>; }, { readonly name: "reveal-tx"; readonly type: clarity_codegen.Transcoder<{ 'order-idx': bigint; tx: Uint8Array; }>; }, { readonly name: "reveal-block"; readonly type: clarity_codegen.Transcoder<{ header: Uint8Array; height: bigint; }>; }, { readonly name: "reveal-proof"; readonly type: clarity_codegen.Transcoder<{ hashes: Uint8Array[]; 'tree-depth': bigint; 'tx-index': bigint; }>; }, { readonly name: "fee-idx"; readonly type: clarity_codegen.Transcoder<bigint | undefined>; }, { readonly name: "token-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }, { readonly name: "token-out-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly pause: { readonly input: readonly [{ readonly name: "new-paused"; readonly type: clarity_codegen.Transcoder<boolean>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'set-fee-to-address': { readonly input: readonly [{ readonly name: "new-fee-to-address"; readonly type: clarity_codegen.Transcoder<string>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'set-peg-in-fee': { readonly input: readonly [{ readonly name: "fee"; readonly type: clarity_codegen.Transcoder<bigint>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'transfer-all-to': { readonly input: readonly [{ readonly name: "new-owner"; readonly type: clarity_codegen.Transcoder<string>; }, { readonly name: "token-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'transfer-all-to-many': { readonly input: readonly [{ readonly name: "new-owner"; readonly type: clarity_codegen.Transcoder<string>; }, { readonly name: "token-traits"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`[]>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<clarity_codegen.Response<boolean>[]>>; readonly mode: "public"; }; readonly 'create-order-cross-or-fail': { readonly input: readonly [{ readonly name: "order"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint | undefined; from: Uint8Array; to: Uint8Array; token: string; 'token-out': string; }>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<Uint8Array>>; readonly mode: "readonly"; }; readonly 'decode-order-cross-from-reveal-tx-or-fail': { readonly input: readonly [{ readonly name: "tx"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }, { readonly name: "order-idx"; readonly type: clarity_codegen.Transcoder<bigint>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ 'commit-txid': Uint8Array; 'order-details': { 'chain-id': bigint | undefined; from: Uint8Array; to: Uint8Array; token: string; 'token-out': string; }; }>>; readonly mode: "readonly"; }; readonly 'decode-order-cross-or-fail': { readonly input: readonly [{ readonly name: "order-script"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ 'chain-id': bigint | undefined; from: Uint8Array; to: Uint8Array; token: string; 'token-out': string; }>>; readonly mode: "readonly"; }; readonly 'get-fee-to-address': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<string>; readonly mode: "readonly"; }; readonly 'get-pair-details': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<{ approved: boolean; 'no-burn': boolean; 'peg-in-fee': bigint; 'peg-in-paused': boolean; 'peg-out-fee': bigint; 'peg-out-gas-fee': bigint; 'peg-out-paused': boolean; tick: string; } | undefined>; readonly mode: "readonly"; }; readonly 'get-pair-details-many': { readonly input: readonly [{ readonly name: "pairs"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }[]>; }]; readonly output: clarity_codegen.Transcoder<({ approved: boolean; 'no-burn': boolean; 'peg-in-fee': bigint; 'peg-in-paused': boolean; 'peg-out-fee': bigint; 'peg-out-gas-fee': bigint; 'peg-out-paused': boolean; tick: string; } | undefined)[]>; readonly mode: "readonly"; }; readonly 'get-pair-details-or-fail': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ approved: boolean; 'no-burn': boolean; 'peg-in-fee': bigint; 'peg-in-paused': boolean; 'peg-out-fee': bigint; 'peg-out-gas-fee': bigint; 'peg-out-paused': boolean; tick: string; }>>; readonly mode: "readonly"; }; readonly 'get-peg-in-fee': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<bigint>; readonly mode: "readonly"; }; readonly 'get-peg-in-sent-or-default': { readonly input: readonly [{ readonly name: "bitcoin-tx"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }, { readonly name: "output"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "offset"; readonly type: clarity_codegen.Transcoder<bigint>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'get-tick-to-pair-or-fail': { readonly input: readonly [{ readonly name: "tick"; readonly type: clarity_codegen.Transcoder<string>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ 'chain-id': bigint; token: string; }>>; readonly mode: "readonly"; }; readonly 'is-approved-pair': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'is-dao-or-extension': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "readonly"; }; readonly 'is-paused': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'is-peg-in-address-approved': { readonly input: readonly [{ readonly name: "address"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'validate-tx-cross': { readonly input: readonly [{ readonly name: "commit-tx"; readonly type: clarity_codegen.Transcoder<{ 'fee-idx': bigint | undefined; 'output-idx': bigint; tx: Uint8Array; }>; }, { readonly name: "reveal-tx"; readonly type: clarity_codegen.Transcoder<{ 'order-idx': bigint; tx: Uint8Array; }>; }, { readonly name: "token-out-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ 'amt-net': bigint; fee: bigint; 'order-details': { 'chain-id': bigint | undefined; from: Uint8Array; to: Uint8Array; token: string; 'token-out': string; }; 'pair-details': { 'chain-id': bigint; token: string; }; 'token-details': { approved: boolean; 'no-burn': boolean; 'peg-in-fee': bigint; 'peg-in-paused': boolean; 'peg-out-fee': bigint; 'peg-out-gas-fee': bigint; 'peg-out-paused': boolean; tick: string; }; 'tx-idxed': { amt: bigint; from: Uint8Array; tick: string; to: Uint8Array; }; }>>; readonly mode: "readonly"; }; readonly 'fee-to-address': { readonly input: clarity_codegen.Transcoder<void>; readonly output: clarity_codegen.Transcoder<string>; readonly mode: "variable"; }; readonly paused: { readonly input: clarity_codegen.Transcoder<void>; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "variable"; }; readonly 'peg-in-fee': { readonly input: clarity_codegen.Transcoder<void>; readonly output: clarity_codegen.Transcoder<bigint>; readonly mode: "variable"; }; }; "cross-peg-out-endpoint-v2-01": { readonly 'apply-whitelist': { readonly input: readonly [{ readonly name: "new-use-whitelist"; readonly type: clarity_codegen.Transcoder<boolean>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly callback: { readonly input: readonly [{ readonly name: "sender"; readonly type: clarity_codegen.Transcoder<string>; }, { readonly name: "payload"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'set-paused': { readonly input: readonly [{ readonly name: "paused"; readonly type: clarity_codegen.Transcoder<boolean>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'transfer-to-unwrap': { readonly input: readonly [{ readonly name: "token-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }, { readonly name: "amount-in-fixed"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "dest-chain-id"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "settle-address"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly whitelist: { readonly input: readonly [{ readonly name: "user"; readonly type: clarity_codegen.Transcoder<string>; }, { readonly name: "whitelisted"; readonly type: clarity_codegen.Transcoder<boolean>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'whitelist-many': { readonly input: readonly [{ readonly name: "users"; readonly type: clarity_codegen.Transcoder<string[]>; }, { readonly name: "whitelisted"; readonly type: clarity_codegen.Transcoder<boolean[]>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<clarity_codegen.Response<boolean>[]>>; readonly mode: "public"; }; readonly 'get-approved-chain-or-fail': { readonly input: readonly [{ readonly name: "dest-chain-id"; readonly type: clarity_codegen.Transcoder<bigint>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ 'buff-length': bigint; name: string; }>>; readonly mode: "readonly"; }; readonly 'get-approved-pair-or-fail': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ approved: boolean; burnable: boolean; fee: bigint; 'max-amount': bigint; 'min-amount': bigint; 'min-fee': bigint; reserve: bigint; }>>; readonly mode: "readonly"; }; readonly 'get-min-fee-or-default': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<bigint>; readonly mode: "readonly"; }; readonly 'get-paused': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'get-token-reserve-or-default': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<bigint>; readonly mode: "readonly"; }; readonly 'get-use-whitelist': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'is-dao-or-extension': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "readonly"; }; readonly 'is-whitelisted': { readonly input: readonly [{ readonly name: "user"; readonly type: clarity_codegen.Transcoder<string>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'validate-transfer-to-unwrap': { readonly input: readonly [{ readonly name: "sender"; readonly type: clarity_codegen.Transcoder<string>; }, { readonly name: "token"; readonly type: clarity_codegen.Transcoder<string>; }, { readonly name: "amount-in-fixed"; readonly type: clarity_codegen.Transcoder<bigint>; }, { readonly name: "dest-chain-id"; readonly type: clarity_codegen.Transcoder<bigint>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ amount: bigint; 'chain-details': { 'buff-length': bigint; name: string; }; token: string; 'token-details': { approved: boolean; burnable: boolean; fee: bigint; 'max-amount': bigint; 'min-amount': bigint; 'min-fee': bigint; reserve: bigint; }; }>>; readonly mode: "readonly"; }; readonly 'whitelisted-users': { readonly input: clarity_codegen.Transcoder<string>; readonly output: clarity_codegen.Transcoder<boolean | undefined>; readonly mode: "mapEntry"; }; readonly 'is-paused': { readonly input: clarity_codegen.Transcoder<void>; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "variable"; }; readonly 'use-whitelist': { readonly input: clarity_codegen.Transcoder<void>; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "variable"; }; }; "cross-peg-in-endpoint-v2-04": { readonly 'apply-whitelist': { readonly input: readonly [{ readonly name: "new-use-whitelist"; readonly type: clarity_codegen.Transcoder<boolean>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly callback: { readonly input: readonly [{ readonly name: "sender"; readonly type: clarity_codegen.Transcoder<string>; }, { readonly name: "payload"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly execute: { readonly input: readonly [{ readonly name: "sender"; readonly type: clarity_codegen.Transcoder<string>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'set-paused': { readonly input: readonly [{ readonly name: "paused"; readonly type: clarity_codegen.Transcoder<boolean>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'transfer-to-cross': { readonly input: readonly [{ readonly name: "order"; readonly type: clarity_codegen.Transcoder<{ 'amount-in-fixed': bigint; 'dest-chain-id': bigint | undefined; from: Uint8Array; salt: Uint8Array; 'src-chain-id': bigint; to: Uint8Array; 'token-in': string; 'token-out': string; }>; }, { readonly name: "token-in-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }, { readonly name: "token-out-trait"; readonly type: clarity_codegen.Transcoder<`${string}.${string}`>; }, { readonly name: "signature-packs"; readonly type: clarity_codegen.Transcoder<{ 'order-hash': Uint8Array; signature: Uint8Array; signer: string; }[]>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly whitelist: { readonly input: readonly [{ readonly name: "user"; readonly type: clarity_codegen.Transcoder<string>; }, { readonly name: "whitelisted"; readonly type: clarity_codegen.Transcoder<boolean>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "public"; }; readonly 'whitelist-many': { readonly input: readonly [{ readonly name: "users"; readonly type: clarity_codegen.Transcoder<string[]>; }, { readonly name: "whitelisted"; readonly type: clarity_codegen.Transcoder<boolean[]>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<clarity_codegen.Response<boolean>[]>>; readonly mode: "public"; }; readonly 'create-cross-order': { readonly input: readonly [{ readonly name: "order"; readonly type: clarity_codegen.Transcoder<{ 'amount-in-fixed': bigint; 'dest-chain-id': bigint | undefined; from: Uint8Array; salt: Uint8Array; 'src-chain-id': bigint; to: Uint8Array; 'token-in': string; 'token-out': string; }>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<Uint8Array>>; readonly mode: "readonly"; }; readonly 'decode-cross-order': { readonly input: readonly [{ readonly name: "order-buff"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ 'amount-in-fixed': bigint; 'dest-chain-id': bigint | undefined; from: Uint8Array; salt: Uint8Array; 'src-chain-id': bigint; to: Uint8Array; 'token-in': string; 'token-out': string; }>>; readonly mode: "readonly"; }; readonly 'get-approved-chain-or-fail': { readonly input: readonly [{ readonly name: "src-chain-id"; readonly type: clarity_codegen.Transcoder<bigint>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ 'buff-length': bigint; name: string; }>>; readonly mode: "readonly"; }; readonly 'get-approved-pair-or-fail': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ approved: boolean; burnable: boolean; fee: bigint; 'max-amount': bigint; 'min-amount': bigint; 'min-fee': bigint; reserve: bigint; }>>; readonly mode: "readonly"; }; readonly 'get-min-fee-or-default': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<bigint>; readonly mode: "readonly"; }; readonly 'get-paused': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'get-required-validators': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<bigint>; readonly mode: "readonly"; }; readonly 'get-token-reserve-or-default': { readonly input: readonly [{ readonly name: "pair"; readonly type: clarity_codegen.Transcoder<{ 'chain-id': bigint; token: string; }>; }]; readonly output: clarity_codegen.Transcoder<bigint>; readonly mode: "readonly"; }; readonly 'get-use-whitelist': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'get-validator-or-fail': { readonly input: readonly [{ readonly name: "validator"; readonly type: clarity_codegen.Transcoder<string>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<{ 'chain-id': bigint; pubkey: Uint8Array; }>>; readonly mode: "readonly"; }; readonly 'hash-cross-order': { readonly input: readonly [{ readonly name: "order"; readonly type: clarity_codegen.Transcoder<{ 'amount-in-fixed': bigint; 'dest-chain-id': bigint | undefined; from: Uint8Array; salt: Uint8Array; 'src-chain-id': bigint; to: Uint8Array; 'token-in': string; 'token-out': string; }>; }]; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<Uint8Array>>; readonly mode: "readonly"; }; readonly 'is-approved-relayer-or-default': { readonly input: readonly [{ readonly name: "relayer"; readonly type: clarity_codegen.Transcoder<string>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'is-dao-or-extension': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<clarity_codegen.Response<boolean>>; readonly mode: "readonly"; }; readonly 'is-order-sent-or-default': { readonly input: readonly [{ readonly name: "order-hash"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'is-order-validated-by-or-default': { readonly input: readonly [{ readonly name: "order-hash"; readonly type: clarity_codegen.Transcoder<Uint8Array>; }, { readonly name: "validator"; readonly type: clarity_codegen.Transcoder<string>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'is-whitelisted': { readonly input: readonly [{ readonly name: "user"; readonly type: clarity_codegen.Transcoder<string>; }]; readonly output: clarity_codegen.Transcoder<boolean>; readonly mode: "readonly"; }; readonly 'message-domain': { readonly input: readonly []; readonly output: clarity_codegen.Transcoder<Uint8Array>; readonly mode: "readonly"; }; readonly 'validate-cross-order': { readonly input: readonly [{ readonly name: "order"; readonly type: clarity_codegen.Transcoder<{ 'amount-in-fixed': bigint;