import { Tx, TxSignPayload, BroadcastTxCommitResult, Wallet } from '@gnolang/tm2-js-client'; import { MsgEndpoint, MsgAddPackage, MsgCall, MsgSend, MsgRun, MsgEnablePackage, MsgRejectPackage, MsgCreateSession, MsgRevokeSession, MsgRevokeAllSessions, Any } from '@gnolang/gno-js-client'; import { BinaryWriter, BinaryReader } from '@bufbuild/protobuf/wire'; interface WalletState { address: string | null; connected: boolean; } type WalletConnectionEvent = 'connect' | 'disconnect'; type WalletListener = (state: WalletState) => void; interface WalletResponse { code: number; status: WalletResponseStatus; type: WalletResponseType; message: string; data: D | null; } declare enum WalletResponseStatus { SUCCESS = "success", FAILURE = "failure" } type WalletResponseType = WalletResponseSuccessType | WalletResponseFailureType | WalletResponseRejectType | WalletResponseExecuteType; declare enum WalletResponseSuccessType { CONNECTION_SUCCESS = "CONNECTION_SUCCESS", GET_ACCOUNT_SUCCESS = "GET_ACCOUNT", GET_NETWORK_SUCCESS = "GET_NETWORK", SIGN_SUCCESS = "SIGN_TX", SIGN_ARBITRARY_SUCCESS = "SIGN_ARBITRARY", CREATE_MULTISIG_ACCOUNT_SUCCESS = "CREATE_MULTISIG_ACCOUNT", CREATE_MULTISIG_TRANSACTION_SUCCESS = "CREATE_MULTISIG_TRANSACTION", SIGN_MULTISIG_TRANSACTION_SUCCESS = "SIGN_MULTISIG_TRANSACTION", BROADCAST_MULTISIG_TRANSACTION_SUCCESS = "BROADCAST_MULTISIG_TRANSACTION", ADD_NETWORK_SUCCESS = "ADD_NETWORK_SUCCESS", SWITCH_NETWORK_SUCCESS = "SWITCH_NETWORK_SUCCESS", TRANSACTION_SUCCESS = "TRANSACTION_SUCCESS" } declare enum WalletResponseFailureType { NOT_CONNECTED = "NOT_CONNECTED", UNRESOLVED_TRANSACTION_EXISTS = "UNRESOLVED_TRANSACTION_EXISTS", INVALID_FORMAT = "INVALID_FORMAT", WALLET_LOCKED = "WALLET_LOCKED", ACCOUNT_MISMATCH = "ACCOUNT_MISMATCH", NO_ACCOUNT = "NO_ACCOUNT", TRANSACTION_FAILED = "TRANSACTION_FAILED", SIGN_FAILED = "SIGN_FAILED", CREATE_MULTISIG_ACCOUNT_FAILED = "CREATE_MULTISIG_ACCOUNT_FAILED", CREATE_MULTISIG_TRANSACTION_FAILED = "CREATE_MULTISIG_TRANSACTION_FAILED", SIGN_MULTISIG_TRANSACTION_FAILED = "SIGN_MULTISIG_TRANSACTION_FAILED", INVALID_MULTISIG_SIGNERS = "INVALID_MULTISIG_SIGNERS", INVALID_MULTISIG_ADDRESS = "INVALID_MULTISIG_ADDRESS", INVALID_MULTISIG_THRESHOLD = "INVALID_MULTISIG_THRESHOLD", BROADCAST_MULTISIG_TRANSACTION_FAILED = "BROADCAST_MULTISIG_TRANSACTION_FAILED", ALREADY_CONNECTED = "ALREADY_CONNECTED", NETWORK_TIMEOUT = "NETWORK_TIMEOUT", REDUNDANT_CHANGE_REQUEST = "REDUNDANT_CHANGE_REQUEST", NETWORK_ALREADY_EXISTS = "NETWORK_ALREADY_EXISTS", UNADDED_NETWORK = "UNADDED_NETWORK", UNSUPPORTED_TYPE = "UNSUPPORTED_TYPE", UNEXPECTED_ERROR = "UNEXPECTED_ERROR", NOT_INITIALIZED_NETWORK = "NOT_INITIALIZED_NETWORK" } declare enum WalletResponseRejectType { TRANSACTION_REJECTED = "TRANSACTION_REJECTED", SIGN_REJECTED = "SIGN_REJECTED", CREATE_MULTISIG_ACCOUNT_REJECTED = "CREATE_MULTISIG_ACCOUNT_REJECTED", CREATE_MULTISIG_TRANSACTION_REJECTED = "CREATE_MULTISIG_TRANSACTION_REJECTED", SIGN_MULTISIG_TRANSACTION_REJECTED = "SIGN_MULTISIG_TRANSACTION_REJECTED", BROADCAST_MULTISIG_TRANSACTION_REJECTED = "BROADCAST_MULTISIG_TRANSACTION_REJECTED", CONNECTION_REJECTED = "CONNECTION_REJECTED", SWITCH_NETWORK_REJECTED = "SWITCH_NETWORK_REJECTED", ADD_NETWORK_REJECTED = "ADD_NETWORK_REJECTED" } declare enum WalletResponseExecuteType { ADD_ESTABLISH = "ADD_ESTABLISH", DO_CONTRACT = "DO_CONTRACT", GET_ACCOUNT = "GET_ACCOUNT", GET_NETWORK = "GET_NETWORK", SIGN_AMINO = "SIGN_AMINO", SIGN_TX = "SIGN_TX", SIGN_ARBITRARY = "SIGN_ARBITRARY", CREATE_MULTISIG_ACCOUNT = "CREATE_MULTISIG_ACCOUNT", CREATE_MULTISIG_TRANSACTION = "CREATE_MULTISIG_TRANSACTION", SIGN_MULTISIG_TRANSACTION = "SIGN_MULTISIG_TRANSACTION", BROADCAST_MULTISIG_TRANSACTION = "BROADCAST_MULTISIG_TRANSACTION", ADD_NETWORK = "ADD_NETWORK", SWITCH_NETWORK = "SWITCH_NETWORK", ENABLE_COSMOS = "ENABLE_COSMOS", GET_COSMOS_KEY = "GET_COSMOS_KEY", SIGN_COSMOS_AMINO = "SIGN_COSMOS_AMINO", SIGN_COSMOS_DIRECT = "SIGN_COSMOS_DIRECT", SEND_COSMOS_TX = "SEND_COSMOS_TX" } declare const WalletMessageInfo: Record; interface AddEstablishOptions { siteName?: string; /** * Optional chainId or list of chainIds to request access for in a single * approval. May mix supported chainGroups (e.g. Gno + AtomOne); chains * outside the wallet's supported set are rejected. When omitted, the * wallet falls back to the legacy behavior of approving the currently * active chainGroup. */ chainIds?: string | string[]; } type AddEstablishResponse$1 = WalletResponse; interface AddNetworkOptions { chainId: string; chainName: string; rpcUrl: string; } type AddNetworkResponse$1 = WalletResponse; type TransactionMessageType = '/bank.MsgSend' | '/vm.m_call' | '/vm.m_addpkg' | '/vm.m_run' | '/vm.m_enable_pkg' | '/vm.m_reject_pkg' | '/auth.m_create_session' | '/auth.m_revoke_session' | '/auth.m_revoke_all_sessions'; type TransactionMessageValue = MsgAddPackage | MsgCall | MsgSend | MsgRun | MsgEnablePackage | MsgRejectPackage | MsgCreateSession | MsgRevokeSession | MsgRevokeAllSessions; declare enum BroadcastType { SYNC = "SYNC", COMMIT = "COMMIT" } interface AddPackageMessage { type: MsgEndpoint.MSG_ADD_PKG; value: MsgAddPackage; } interface MsgCallMessage { type: MsgEndpoint.MSG_CALL; value: MsgCall; } interface MsgSendMessage { type: MsgEndpoint.MSG_SEND; value: MsgSend; } interface MsgRunMessage { type: MsgEndpoint.MSG_RUN; value: MsgRun; } interface MsgEnablePackageMessage { type: MsgEndpoint.MSG_ENABLE_PKG; value: MsgEnablePackage; } interface MsgRejectPackageMessage { type: MsgEndpoint.MSG_REJECT_PKG; value: MsgRejectPackage; } interface MsgCreateSessionMessage { type: MsgEndpoint.MSG_CREATE_SESSION; value: MsgCreateSession; } interface MsgRevokeSessionMessage { type: MsgEndpoint.MSG_REVOKE_SESSION; value: MsgRevokeSession; } interface MsgRevokeAllSessionsMessage { type: MsgEndpoint.MSG_REVOKE_ALL_SESSIONS; value: MsgRevokeAllSessions; } type TransactionMessage = AddPackageMessage | MsgCallMessage | MsgSendMessage | MsgRunMessage | MsgEnablePackageMessage | MsgRejectPackageMessage | MsgCreateSessionMessage | MsgRevokeSessionMessage | MsgRevokeAllSessionsMessage; interface TransactionData { messages: TransactionMessage[]; gasFee: number; gasWanted: number; memo?: string; } interface SignTransactionData { document: SignedDocument; signature: Signature; } interface SignedDocument { msgs: TransactionMessage[]; fee: { amount: { amount: string; denom: string; }[]; gas: string; }; chain_id: string; memo: string; account_number: string; sequence: string; } interface Signature { pubKey: { typeUrl: string; value: string; }; signature: string; } interface SingTransaction { encodedTransaction: string; } interface SignDocument { encodedTransaction: string; } interface TransactionEvent { '@type': string; type: string; attrs: Record[]; pkg_path: string; func: string; } interface TransactionResultResponseBase { Error: { log: string; } | null; Data: string; Events: TransactionEvent[]; Log: string; Info: string; } interface TransactionResultResponse { ResponseBase: TransactionResultResponseBase; GasWanted: string; GasUsed: string; } interface TransactionResult { hash: string; } interface TransactionResultSync extends TransactionResult { data?: string; log?: string; } interface TransactionResultCommit extends TransactionResult { check_tx?: TransactionResultResponse; deliver_tx?: TransactionResultResponse; } interface BroadcastTransactionOptions { tx: Tx; broadcastType?: BroadcastType; } type BroadcastTransactionResponse = WalletResponse; interface ConnectOptions { walletDownloadUrl?: string; } type ConnectResponse = void; type DisconnectResponse = void; type AccountStatusType = 'ACTIVE' | 'IN_ACTIVE'; type AccountInfo = { accountNumber: string; address: string; coins: string; chainId: string; sequence: string; status: AccountStatusType; publicKey: { '@type': string; value: string; } | null; }; type GetAccountResponse$1 = WalletResponse; type GetConnectionState = ConnectionState; type NetworkInfo = { chainId: string; networkName: string; addressPrefix: string; rpcUrl: string; indexerUrl: string | null; }; type GetNetworkResponse$1 = WalletResponse; declare const LOGIN_PROVIDER: { readonly GOOGLE: "google"; readonly FACEBOOK: "facebook"; readonly REDDIT: "reddit"; readonly DISCORD: "discord"; readonly TWITCH: "twitch"; readonly APPLE: "apple"; readonly LINE: "line"; readonly GITHUB: "github"; readonly KAKAO: "kakao"; readonly LINKEDIN: "linkedin"; readonly TWITTER: "twitter"; readonly WEIBO: "weibo"; readonly WECHAT: "wechat"; readonly FARCASTER: "farcaster"; readonly EMAIL_PASSWORDLESS: "email_passwordless"; readonly SMS_PASSWORDLESS: "sms_passwordless"; readonly WEBAUTHN: "webauthn"; readonly JWT: "jwt"; }; type LOGIN_PROVIDER_TYPE = (typeof LOGIN_PROVIDER)[keyof typeof LOGIN_PROVIDER]; type CUSTOM_LOGIN_PROVIDER_TYPE = string & { toString?: (radix?: number) => string; }; interface SocialUserInfo { email?: string; name?: string; profileImage?: string; aggregateVerifier?: string; verifier?: string; verifierId?: string; typeOfLogin?: LOGIN_PROVIDER_TYPE | CUSTOM_LOGIN_PROVIDER_TYPE; dappShare?: string; /** * Token issued by Web3Auth. */ idToken?: string; /** * Token issued by OAuth provider. Will be available only if you are using * custom verifiers. */ oAuthIdToken?: string; /** * Access Token issued by OAuth provider. Will be available only if you are using * custom verifiers. */ oAuthAccessToken?: string; appState?: string; touchIDPreference?: string; isMfaEnabled?: boolean; } type GetSocialUserProfileResponse = SocialUserInfo; type IsConnectedResponse = WalletResponse; interface OffConnectionChangeOptions { callback: (connection: WalletConnectionEvent) => void; } type OffConnectionChangeResponse = void; interface OnChangeAccountOptions { callback: (address: string) => void; } type OnChangeAccountResponse = void; interface OnChangeNetworkOptions { callback: (chainId: string) => void; } type OnChangeNetworkResponse = void; interface OnConnectionChangeOptions { callback: (connection: WalletConnectionEvent) => void; } type OnConnectionChangeResponse = void; /** * ADR-036 message type for off-chain data. tm2 registers nothing under the * `sign` prefix, so a node cannot decode a transaction carrying it, which is * what keeps a signed document from ever being broadcast. */ declare const ARBITRARY_MSG_TYPE = "sign/MsgSignData"; /** * Upper bound, in UTF-8 bytes, that Adena accepts for `data`. The wallet ships * the request to its approval window inside the popup URL, so larger payloads * are rejected with `INVALID_FORMAT` rather than truncated. */ declare const MAX_ARBITRARY_MESSAGE_BYTES = 4096; interface ArbitraryMessage { type: typeof ARBITRARY_MSG_TYPE; value: { signer: string; /** Base64 of the UTF-8 encoded message */ data: string; }; } interface ArbitrarySignature { pubKey: { /** `/tm.PubKeySecp256k1` */ typeUrl: string; /** Base64 of the compressed Secp256k1 key, not protobuf-wrapped */ value: string; }; /** Base64 of the 64-byte `r || s` signature */ signature: string; } /** * Proof returned by `SignArbitrary`: the exact document that was signed and * the signature over it. Hand both to `verifyArbitrarySignature`. */ interface SignedArbitraryData { signed: TxSignPayload; signature: ArbitrarySignature; } interface SignArbitraryOptions { /** Address expected to sign; the wallet refuses with ACCOUNT_MISMATCH otherwise */ signer: string; /** UTF-8 text shown to the user and signed as-is */ data: string; } type SignArbitraryResponse$1 = WalletResponse; interface SignTransactionOptions { tx: Tx; } type SignTransactionResponse = WalletResponse; interface SwitchNetworkOptions { chainId: string; } type SwitchNetworkResponse$1 = WalletResponse; declare class AdenaWalletProvider implements WalletProvider { private getAdena; isConnected(): Promise; addEstablish(options: AddEstablishOptions): Promise; getAccount(): Promise; getNetwork(): Promise; switchNetwork(options: SwitchNetworkOptions): Promise; addNetwork(options: AddNetworkOptions): Promise; signTransaction(options: SignTransactionOptions): Promise; broadcastTransaction(options: BroadcastTransactionOptions): Promise; signArbitrary(options: SignArbitraryOptions): Promise; createMultisigAccount(options: CreateMultisigAccountOptions): Promise; createMultisigTransaction(options: CreateMultisigTransactionOptions): Promise; signMultisigTransaction(options: SignMultisigTransactionOptions): Promise; broadcastMultisigTransaction(options: BroadcastMultisigTransactionOptions): Promise; onChangeAccount(options: OnChangeAccountOptions): OnChangeAccountResponse; onChangeNetwork(options: OnChangeNetworkOptions): OnChangeNetworkResponse; } type AdenaWallet = { version: string; AddEstablish: AdenaAddEstablish; GetAccount: AdenaGetAccount; GetNetwork: AdenaGetNetwork; SwitchNetwork: AdenaSwitchNetwork; AddNetwork: AdenaAddNetwork; SignTx: AdenaSignTx; Sign: AdenaSign; DoContract: AdenaDoContract; SignArbitrary?: AdenaSignArbitrary; CreateMultisigAccount: AdenaCreateMultisigAccount; CreateMultisigTransaction: AdenaCreateMultisigTransaction; SignMultisigTransaction: AdenaSignMultisigTransaction; BroadcastMultisigTransaction: AdenaBroadcastMultisigTransaction; On: AdenaOnEvent; cosmos?: AdenaCosmos; }; type AdenaResponseStatus = 'success' | 'failure'; interface AdenaResponse { code: number; status: AdenaResponseStatus; type: T; message: string; data: D; } declare const ADENA_SUCCESS_CODE = 0; type CosmosBroadcastMode = 'sync' | 'async' | 'block'; interface CosmosKey { name: string; algo: string; pubKey: Uint8Array; address: Uint8Array; bech32Address: string; isNanoLedger: boolean; } interface CosmosStdFee { amount: readonly { denom: string; amount: string; }[]; gas: string; granter?: string; payer?: string; } interface CosmosAminoMsg { type: string; value: unknown; } interface CosmosStdSignDoc { readonly chain_id: string; readonly account_number: string; readonly sequence: string; readonly fee: CosmosStdFee; readonly msgs: readonly CosmosAminoMsg[]; readonly memo: string; } interface CosmosStdSignature { pub_key: { type: string; value: string; }; signature: string; } interface CosmosAminoSignResponse { readonly signed: CosmosStdSignDoc; readonly signature: CosmosStdSignature; } interface CosmosSignDoc { bodyBytes: Uint8Array; authInfoBytes: Uint8Array; chainId: string; accountNumber: bigint; } interface CosmosDirectSignResponse { readonly signed: CosmosSignDoc; readonly signature: CosmosStdSignature; } interface CosmosSendTxResult { txhash: string; code: number; rawLog: string; height: number; } interface CosmosAccountData { readonly address: string; readonly algo: 'secp256k1' | 'ed25519' | 'sr25519'; readonly pubkey: Uint8Array; } interface CosmosOfflineAminoSigner { getAccounts(): Promise; signAmino(signerAddress: string, signDoc: CosmosStdSignDoc): Promise; } interface CosmosOfflineDirectSigner { getAccounts(): Promise; signDirect(signerAddress: string, signDoc: CosmosSignDoc): Promise; } type EnableCosmosResponse = WalletResponse; type GetCosmosKeyResponse = WalletResponse; type SignCosmosAminoResponse = WalletResponse; type SignCosmosDirectResponse = WalletResponse; type SendCosmosTxResponse = WalletResponse; /** * Cosmos sub-namespace exposed at `window.adena.cosmos`. Mirrors Gno's flat * API: `enable` / `getKey` / `signAmino` / `signDirect` / `sendTx` resolve * with the `WalletResponse` wrapper (`{ status, type, code, message, data }`) * — including on failure. `getOfflineSigner*` follow the CosmJS * `OfflineSigner` contract instead, returning bare values and throwing on * failure so libraries like `SigningStargateClient` work unchanged. */ interface AdenaCosmos { version: string; enable(chainIds: string | string[]): Promise; getKey(chainId: string): Promise; signAmino(chainId: string, signer: string, signDoc: CosmosStdSignDoc): Promise; signDirect(chainId: string, signer: string, signDoc: CosmosSignDoc): Promise; sendTx(chainId: string, tx: Uint8Array, mode: CosmosBroadcastMode): Promise; getOfflineSigner(chainId: string): CosmosOfflineAminoSigner & CosmosOfflineDirectSigner; getOfflineSignerOnlyAmino(chainId: string): CosmosOfflineAminoSigner; /** * Keplr-compatible: resolves to an amino-only signer for Ledger accounts * and the full amino+direct signer otherwise. Async because the wallet * resolves `isNanoLedger` via `getKey` before choosing the signer kind. */ getOfflineSignerAuto(chainId: string): Promise; } type OnAccountChangeFunc = (address: string) => void; type OnNetworkChangeFunc = (network: string) => void; type OnEventType = 'changedAccount' | 'changedNetwork'; type OnEventFunc = OnAccountChangeFunc | OnNetworkChangeFunc; type AdenaOnEvent = (event: OnEventType, func: OnEventFunc) => void; declare enum AddEstablishResponseType { CONNECTION_SUCCESS = "CONNECTION_SUCCESS", ALREADY_CONNECTED = "ALREADY_CONNECTED" } type AddEstablishResponse = AdenaResponse>; /** * Single approval to register the dApp with the wallet. The optional second * argument accepts a chainId or list of chainIds across supported chainGroups * (Gno + AtomOne today) so a dApp can request multi-chain access in one * popup. Omitting it preserves the legacy "approve current chainGroup" * behavior. */ type AdenaAddEstablish = (name: string, chainIds?: string | string[]) => Promise; declare enum GetAccountResponseType { GET_ACCOUNT = "GET_ACCOUNT", NO_ACCOUNT = "NO_ACCOUNT", WALLET_LOCKED = "WALLET_LOCKED" } declare enum EAccountStatus { ACTIVE = "ACTIVE", INACTIVE = "IN_ACTIVE" } type GetAccountResponseData = { accountNumber: string; address: string; coins: string; chainId: string; sequence: string; status: EAccountStatus; publicKey: { '@type': string; value: string; } | null; }; type GetAccountResponse = AdenaResponse; type AdenaGetAccount = () => Promise; declare enum GetNetworkResponseType { GET_NETWORK_SUCCESS = "GET_NETWORK_SUCCESS", NO_ACCOUNT = "NO_ACCOUNT", WALLET_LOCKED = "WALLET_LOCKED" } type GetNetworkResponseData = { chainId: string; networkName: string; addressPrefix: string; rpcUrl: string; indexerUrl: string | null; }; type GetNetworkResponse = AdenaResponse; type AdenaGetNetwork = () => Promise; declare global { interface Window { adena: AdenaWallet | undefined; } } type AddNetworkParams = { chainId: string; chainName: string; rpcUrl: string; }; declare enum AddNetworkResponseType { ADD_NETWORK_SUCCESS = "ADD_NETWORK_SUCCESS" } type AddNetworkResponse = AdenaResponse; type AdenaAddNetwork = (network: AddNetworkParams) => Promise; declare enum SwitchNetworkResponseType { SWITCH_NETWORK_SUCCESS = "SWITCH_NETWORK_SUCCESS", REDUNDANT_CHANGE_REQUEST = "REDUNDANT_CHANGE_REQUEST", UNADDED_NETWORK = "UNADDED_NETWORK" } type SwitchNetworkResponseData = { chainId: string; }; type SwitchNetworkResponse = AdenaResponse; type AdenaSwitchNetwork = (chainId: string) => Promise; declare enum SignArbitraryResponseType { SIGN_ARBITRARY = "SIGN_ARBITRARY" } type SignArbitraryParams = { signer: string; /** * Text, not bytes: the wallet displays it and `Uint8Array` does not survive * the JSON boundary to the extension */ data: string; }; type SignArbitraryResponse = AdenaResponse; /** * Signs `data` as an ADR-036 document bound to the connected network's chain * id. Absent on extensions that predate the feature. */ type AdenaSignArbitrary = (params: SignArbitraryParams) => Promise; type TransactionParams = { messages: TransactionMessage[]; gasFee: number; gasWanted: number; memo?: string; /** * Pins the transaction to a specific network, instead of whichever one the * wallet currently has selected. */ networkInfo?: { chainId: string; rpcUrl: string; }; }; /** * Controls the wallet UI that accompanies a broadcast. */ type ContractOptions = { withNotification?: boolean; isVisibleResult?: boolean; }; declare enum DoContractResponseType { TRANSACTION_SENT = "TRANSACTION_SENT" } type DoContractResponse = AdenaResponse; type AdenaDoContract = (params: TransactionParams, options?: ContractOptions | boolean) => Promise; declare enum SignTxResponseType { SIGN_TX = "SIGN_TX" } type SignTxResponseData = { encodedTransaction: string; }; type SignTxResponse = AdenaResponse; type AdenaSignTx = (params: TransactionParams) => Promise; /** * Signs a transaction as an amino document. The wallet returns the raw amino * payload, so the shape is left to the caller. */ type AdenaSign = (params: TransactionParams) => Promise>; /** * Common */ type MultisigConfig = { signers: string[]; threshold: number; noSort: boolean; }; /** * A single signer's signature over a multisig document. Note the amino `@type` * key — this is the JSON shape Adena returns, not the protobuf one. */ type MultisigSignature = { pub_key: { '@type': string; value: string; }; signature: string; }; /** * Amino JSON shape of a transaction message inside a multisig document. The * message type lives under `@type` here, unlike the `{ type, value }` shape * used when submitting messages. */ type MultisigRawMessage = { '@type': string; [key: string]: unknown; }; /** * Amino JSON transaction carried by a multisig document, `RawTx` on the wallet * side. `signatures` is null until the document has been signed. */ type MultisigRawTransaction = { msg: MultisigRawMessage[]; fee: { gas_wanted: string; gas_fee: string; }; signatures: MultisigSignature[] | null; memo: string; }; /** * An unsigned or partially signed multisig transaction, together with the * account context it has to be signed against. */ type MultisigTransactionDocument = { tx: MultisigRawTransaction; chainId: string; accountNumber: string; sequence: string; }; /** * CreateMultisigAccount */ type CreateMultisigAccountParams = { signers: string[]; threshold: number; noSort?: boolean; }; declare enum CreateMultisigAccountResponseType { CREATE_MULTISIG_ACCOUNT = "CREATE_MULTISIG_ACCOUNT" } type CreateMultisigAccountResponseData = { multisigConfig: MultisigConfig; multisigAddress: string; }; type CreateMultisigAccountResponse$1 = AdenaResponse; type AdenaCreateMultisigAccount = (params: CreateMultisigAccountParams) => Promise; /** * CreateMultisigTransaction */ type CreateMultisigTransactionParams = { messages: TransactionMessage[]; fee: { gasFee: string; gasWanted: string; }; memo?: string; networkInfo?: { chainId: string; rpcUrl: string; }; }; type CreateMultisigTransactionResponseData = { tx: MultisigRawTransaction; }; declare enum CreateMultisigTransactionResponseType { CREATE_MULTISIG_TRANSACTION = "CREATE_MULTISIG_TRANSACTION" } type CreateMultisigTransactionResponse$1 = AdenaResponse; type AdenaCreateMultisigTransaction = (params: CreateMultisigTransactionParams, withSaveFile?: boolean) => Promise; /** * SignMultisigTransaction */ type SignMultisigTransactionResponseData = { result: { multisigDocument: MultisigTransactionDocument; multisigSignatures: MultisigSignature[]; }; signature: MultisigSignature; }; declare enum SignMultisigTransactionResponseType { SIGN_MULTISIG_TRANSACTION = "SIGN_MULTISIG_TRANSACTION" } type SignMultisigTransactionResponse$1 = AdenaResponse; type AdenaSignMultisigTransaction = (multisigDocument: MultisigTransactionDocument, multisigSignatures?: MultisigSignature[], withSaveFile?: boolean) => Promise; /** * BroadcastMultisigTransaction */ declare enum BroadcastMultisigTransactionResponseType { BROADCAST_MULTISIG_TRANSACTION = "BROADCAST_MULTISIG_TRANSACTION" } type BroadcastMultisigTransactionResopnse = AdenaResponse; type AdenaBroadcastMultisigTransaction = (multisigDocument: MultisigTransactionDocument, multisigSignatures?: MultisigSignature[], options?: ContractOptions) => Promise; declare class GnoWalletProvider implements TM2WalletProvider { protected wallet: Wallet | null; protected rpcUrl: string | null; protected networks: NetworkInfo[]; protected currentChainId: string | null; protected networkCallback: ((chainId: string) => void) | null; /** Identifies the connection attempt that currently owns the wallet's provider. */ private pendingNetworkRequest; /** Outcome of that attempt, so an attempt it superseded can report it instead of guessing. */ private pendingConnection; /** Whether a provider is installed on the wallet, so a failed attempt does not disown it. */ private hasActiveProvider; constructor(wallet?: Wallet, networks?: NetworkInfo[]); protected get currentNetwork(): NetworkInfo | null; getWallet(): Wallet | null; connect(): Promise; disconnect(): Promise; isConnected(): Promise; addEstablish(): Promise; getAccount(): Promise; setNetworks(networks: NetworkInfo[]): void; getNetwork(): Promise; switchNetwork(options: SwitchNetworkOptions): Promise; addNetwork(options: AddNetworkOptions): Promise; signTransaction(options: SignTransactionOptions): Promise; broadcastTransaction(options: BroadcastTransactionOptions): Promise; signArbitrary(options: SignArbitraryOptions): Promise; createMultisigAccount(): Promise; createMultisigTransaction(): Promise; signMultisigTransaction(): Promise; broadcastMultisigTransaction(): Promise; onChangeAccount(): OnChangeAccountResponse; onChangeNetwork(options: OnChangeNetworkOptions): OnChangeNetworkResponse; protected triggerNetworkCallback(chainId: string): void; protected connectProvider(): Promise; /** * Connects the wallet to `rpcUrl`, and when `network` is given makes it the * current one once that connection is installed. * * Every attempt goes through here and takes a ticket, whether it came from * `connect()` or from `switchNetwork()`. The ticket is checked after the * async factory resolves and before anything is mutated, so a slower attempt * can neither install its provider over a newer one nor leave * `currentChainId` describing a node the wallet is not talking to. * * @param rpcUrl * @param network - the network to select, or null to keep the current one * @returns {Promise} whether the wallet is connected to a provider */ private applyConnection; private runConnection; private supersedingConnectionOutcome; private selectNetwork; protected disconnectProvider(): boolean; /** * Points the wallet at the given network. Rejects if the RPC endpoint cannot * be reached, leaving the previous network selected. * * @param network */ private setNetwork; /** * Checks if a network with the given chainId or RPC URL already exists * * @param chainId * @param normalizedRpcUrl * @returns {boolean} true if network with same chainId or RPC URL exists, false otherwise */ private isExistingNetwork; getSocialUserProfile(): Promise; } declare class GnoSocialWalletProvider extends GnoWalletProvider { private web3auth; private socialType; private config; private chainConfig; private loginConfig; private extraLoginOptions; constructor(socialType: SocialType, config: SocialGoogleConfigure | SocialTwitterConfigure | SocialEmailPasswordlessConfigure, networks?: NetworkInfo[]); setExtraLoginOptions(extraLoginOptions: SocialExtraLoginOptions): void; private createLoginConfig; connect(): Promise; disconnect: () => Promise; private requestPrivateKey; private initializeWeb3Auth; static createGoogle(config: SocialGoogleConfigure): Promise; static createTwitter(config: SocialTwitterConfigure): Promise; static createEmailPasswordless(config: SocialEmailPasswordlessConfigure): Promise; getSocialUserProfile(): Promise; } type CreateMultisigAccountOptions = CreateMultisigAccountParams; type CreateMultisigAccountResponse = WalletResponse; type CreateMultisigTransactionOptions = CreateMultisigTransactionParams; type CreateMultisigTransactionResponse = WalletResponse; type SignMultisigTransactionOptions = { multisigDocument: MultisigTransactionDocument; multisigSignatures?: MultisigSignature[]; }; type SignMultisigTransactionResponse = WalletResponse; type BroadcastMultisigTransactionOptions = SignMultisigTransactionResponseData['result']; type BroadcastMultisigTransactionResponse = WalletResponse; interface WalletProvider { isConnected: () => Promise; /** * Establish a connection to your site from Adena * @async * @param {string} name - The name of the website requesting to connect * @returns Original Adena response, useful to check if the site was already connected */ addEstablish: (options: AddEstablishOptions) => Promise; /** * Fetch information about the current connected account * @async * @returns Original Adena response with the account information */ getAccount: () => Promise; /** * Fetch information about the current connected network * @async * @returns Original Adena response with the network information */ getNetwork: () => Promise; /** * Switches the Adena network to the given chain ID * @async * @param {string} chainId - Chain ID * @returns Nothing, throws an error if it fails */ switchNetwork: (options: SwitchNetworkOptions) => Promise; /** * Add a custom network to Adena * @async * @param {string} chainId - Chain ID * @param {string} chainName - Chain name * @param {string} rpcUrl - Network RPC URL * @returns Nothing, throws an error if it fails */ addNetwork: (options: AddNetworkOptions) => Promise; /** * Sign a transaction crafted by a web-app * @async * @param {ContractMessage[]} messages - Messages to send in the transaction * @param {number} gasFee - Actual network fee to pay (in ugnot) * @param {number} gasWanted - Gas limit (in ugnot) * @param {string} memo - Transaction memo (tag) * @returns {string} Encoded transaction */ signTransaction: (options: SignTransactionOptions) => Promise; /** * Sign and broadcast a transaction crafted by a web-app * @async * @param {ContractMessage[]} messages - Messages to send in the transaction * @param {number} gasFee - Actual network fee to pay (in ugnot) * @param {number} gasWanted - Gas limit (in ugnot) * @param {string} memo - Transaction memo (tag) * @returns {BroadcastTxCommitResult} Result of the broadcast transaction */ broadcastTransaction: (options: BroadcastTransactionOptions) => Promise; /** * Sign arbitrary off-chain data (ADR-036) to prove control of an address * @async * @param {string} signer - Address expected to sign the data * @param {string} data - UTF-8 text to sign * @returns {SignedArbitraryData} The signed document and its signature, verifiable with `verifyArbitrarySignature` */ signArbitrary: (options: SignArbitraryOptions) => Promise; /** * Add a listener on connected account changes * @async * @param {OnAccountChangeFunc} func - Function to call on a new event * @returns Nothing, throws an error if it fails */ onChangeAccount: (options: OnChangeAccountOptions) => OnChangeAccountResponse; /** * Add a listener on network changes * @async * @param {OnNetworkChangeFunc} func - Function to call on a new event * @returns Nothing, throws an error if it fails */ onChangeNetwork: (options: OnChangeNetworkOptions) => OnChangeNetworkResponse; /** * Create a multisig account with specified signers and threshold * @async * @param {CreateMultisigAccountOptions} options - Configuration with signers array, threshold number, and optional noSort flag * @returns {Promise} Created multisig account details * @throws {Error} If account creation fails */ createMultisigAccount: (options: CreateMultisigAccountOptions) => Promise; /** * Create a multisig transaction with specified messages and fee * @async * @param {CreateMultisigTransactionOptions} options - Configuration with chain_id, messages array, fee, and memo * @returns {Promise} Created multisig transaction details * @throws {Error} If transaction creation fails */ createMultisigTransaction: (options: CreateMultisigTransactionOptions) => Promise; /** * Sign a multisig transaction * @async * @param {SignMultisigTransactionOptions} options - Transaction signing configuration including tx, chainId, accountNumber, sequence, and optional existing signatures * @returns {Promise} Signed multisig transaction details * @throws {Error} If transaction signing fails */ signMultisigTransaction: (options: SignMultisigTransactionOptions) => Promise; /** * Broadcast a signed multisig transaction to the network * @async * @param {BroadcastMultisigTransactionOptions} options - Signed transaction document including tx, chainId, accountNumber, sequence, and multisig signatures * @returns {Promise} Broadcast result with transaction hash and status * @throws {Error} If transaction broadcast fails */ broadcastMultisigTransaction: (options: BroadcastMultisigTransactionOptions) => Promise; } interface TM2WalletProvider extends WalletProvider { connect(): Promise; disconnect(): Promise; getWallet(): Wallet | null; getNetwork(): Promise; getSocialUserProfile(): Promise; } interface SDKConfigure extends SDKConnectionConfigure { walletDownloadUrl?: string; } interface SDKConnectionConfigure { isSession?: boolean; } interface SocialBaseConfigure { chainId: string; name: string; rpcTarget: string; network: 'mainnet' | 'testnet'; clientId: string; addressPrefix?: string; storageKey?: 'session' | 'local'; } interface SocialExtraLoginOptions { login_hint?: string; domain?: string; } interface SocialGoogleConfigure extends SocialBaseConfigure { authClientId: string; googleClientId: string; verifier: string; } interface SocialTwitterConfigure extends SocialBaseConfigure { authClientId: string; verifier: string; domain: string; } interface SocialEmailPasswordlessConfigure extends SocialBaseConfigure { authClientId: string; verifier: string; domain: string; email: string; } declare enum SocialType { GOOGLE = "GOOGLE", TWITTER = "TWITTER", EMAIL = "EMAIL_PASSWORDLESS" } declare const protobufPackage = "gno.bank"; interface Event { type: string; attrs: EventAttribute[]; pkg_path: string; } declare const Event: MessageFns; interface EventAttribute { key: string; value: string; } declare const EventAttribute: MessageFns; /** StorageDepositEvent is emitted when a storage deposit fee is locked. */ interface StorageDepositEvent { bytes_delta: bigint; fee_delta: string; pkg_path: string; } declare const StorageDepositEvent: MessageFns; /** StorageUnlockEvent is emitted when a storage deposit fee is unlocked. */ interface StorageUnlockEvent { bytes_delta: bigint; fee_refund: string; pkg_path: string; refund_withheld: boolean; } declare const StorageUnlockEvent: MessageFns; type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined; type DeepPartial = T extends bigint ? string | number | bigint : T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create, I>>(base?: I): T; fromPartial, I>>(object: I): T; } declare enum ConnectionState { DISCONNECTED = 0, CONNECTING = 1, CONNECTED = 2, ERROR = 3 } declare class ConnectionStateManager { private static readonly STORAGE_KEY; private state; /** * Retrieves the current connection state. * @returns The current connection state. */ getState(): ConnectionState; /** * Sets a new connection state and saves it to storage. * @param state - The new connection state to set. */ setState(state: ConnectionState): void; /** * Loads the connection state from storage and updates the internal state. * If the stored state is 'CONNECTED', it sets the state to CONNECTED. */ loadState(): void; /** * Saves the current connection state to storage. * The state is saved under the key defined by STORAGE_KEY. */ private saveState; } declare class ConnectionManager { private provider; private config; private stateManager; private listeners; constructor(provider: WalletProvider | TM2WalletProvider, config: SDKConnectionConfigure); /** * Initiates the connection process with the wallet provider. * Determines if the provider is TM2 or Adena and calls the respective connection method. * @returns A promise that resolves when the connection process is complete. */ connectWallet(): Promise; /** * Disconnects from the wallet provider and updates the connection state. */ disconnectWallet(): void; /** * Retrieves the current connection state from the state manager. * @returns The current connection state. */ getConnectionState(): ConnectionState; /** * Retrieves the wallet provider if the connection state is connected. * Throws an error if the wallet is not connected. * @returns The current wallet provider. * @throws Error if the wallet is not connected. */ getWalletProvider(): WalletProvider; /** * Registers a callback function to be called when the connection state changes. * @param listener - The callback function to be invoked on connection state changes. */ on(listener: (connection: WalletConnectionEvent) => void): void; /** * Unregisters a previously registered callback function from being called on connection state changes. * @param listener - The callback function to be removed. */ off(listener: (connection: WalletConnectionEvent) => void): void; /** * Handles the connection process for Adena wallet providers. * Updates the connection state based on the success or failure of connection attempts. * @returns A promise that resolves when the connection process is complete. * @throws Error if an error occurs during the connection process. */ private connectAdenaWallet; /** * Handles the connection process for TM2 wallet providers. * Updates the connection state based on the success or failure of the connection attempt. * @returns A promise that resolves when the connection process is complete. * @throws Error if an error occurs during the connection process. */ private connectTM2Wallet; /** * Updates the connection state to connected and triggers the connection event. */ private connect; /** * Updates the connection state to disconnected and triggers the disconnection event. */ private disconnect; /** * Invokes all registered listeners with the specified connection event. * @param event - The connection event to trigger. */ private triggerConnectionEvent; } declare const DEFAULT_RPC_URL = "https://rpc.gno.land:443"; declare const GNO_ADDRESS_PREFIX = "g"; declare class AdenaSDK { private connectionManager; private config; constructor(provider: WalletProvider, config?: SDKConfigure); /** * Retrieves the current wallet provider from the connection manager. * @returns The current wallet provider. */ private get walletProvider(); /** * Connects to the wallet using the connection manager and configuration. * @returns A promise that resolves when the connection is successful. */ connectWallet(): Promise; /** * Disconnects from the wallet using the connection manager. */ disconnectWallet(): void; /** * Retrieves the current connection state from the connection manager. * @returns The current connection state. */ getConnectionState(): ConnectionState; /** * Registers a callback to be invoked when the connection state changes. * @param options - Configuration options including the callback function. * @returns The response from the `onConnectionChange` method of the connection manager. */ onConnectionChange(options: OnConnectionChangeOptions): OnConnectionChangeResponse; /** * Unregisters a callback previously registered for connection state changes. * @param options - Configuration options including the callback function. * @returns The response from the `offConnectionChange` method of the connection manager. */ offConnectionChange(options: OffConnectionChangeOptions): OffConnectionChangeResponse; /** * Checks if the wallet provider is currently connected. * @returns A promise that resolves to the response from the wallet provider's `isConnected` method. */ isConnected(): Promise; /** * Adds an establishment request to the wallet provider. * @param options - Options for the establishment request. * @returns A promise that resolves to the response from the wallet provider's `addEstablish` method. */ addEstablish(options: AddEstablishOptions): Promise; /** * Retrieves account information from the wallet provider. * @returns A promise that resolves to the account information from the wallet provider. */ getAccount(): Promise; /** * Retrieves the currently selected network from the wallet provider. * @returns A promise that resolves to the response from the wallet provider's `getNetwork` method. */ getNetwork(): Promise; /** * Switches the network in the wallet provider. * @param options - Options for switching the network. * @returns A promise that resolves to the response from the wallet provider's `switchNetwork` method. */ switchNetwork(options: SwitchNetworkOptions): Promise; /** * Adds a network to the wallet provider. * @param options - Options for adding the network. * @returns A promise that resolves to the response from the wallet provider's `addNetwork` method. */ addNetwork(options: AddNetworkOptions): Promise; /** * Signs a transaction using the wallet provider. * @param options - Options for signing the transaction, including the transaction details. * @returns A promise that resolves to the response from the wallet provider's `signTransaction` method. */ signTransaction(options: SignTransactionOptions): Promise; /** * Broadcasts a transaction using the wallet provider. * @param options - Options for broadcasting the transaction. * @returns A promise that resolves to the response from the wallet provider's `broadcastTransaction` method. */ broadcastTransaction(options: BroadcastTransactionOptions): Promise; /** * Signs arbitrary off-chain data (ADR-036) to prove control of an address. * @param options - The expected signer address and the UTF-8 text to sign. * @returns A promise that resolves to the signed document and signature, verifiable with `verifyArbitrarySignature`. */ signArbitrary(options: SignArbitraryOptions): Promise; createMultisigAccount(options: CreateMultisigAccountOptions): Promise; createMultisigTransaction(options: CreateMultisigTransactionOptions): Promise; signMultisigTransaction(options: SignMultisigTransactionOptions): Promise; broadcastMultisigTransaction(options: BroadcastMultisigTransactionOptions): Promise; /** * Registers a callback to be invoked when the account changes. * @param options - Configuration options including the callback function. * @returns The response from the wallet provider's `onChangeAccount` method. */ onChangeAccount(options: OnChangeAccountOptions): OnChangeAccountResponse; /** * Registers a callback to be invoked when the network changes. * @param options - Configuration options including the callback function. * @returns The response from the wallet provider's `onChangeNetwork` method. */ onChangeNetwork(options: OnChangeNetworkOptions): OnChangeNetworkResponse; /** * For social accounts, get the profile information for the social account. * @returns A promise that resolves to the profile information for the social account. */ getSocialUserProfile(): Promise; static createAdenaWallet(config?: SDKConfigure): AdenaSDK; static createGnoWallet(wallet: Wallet, config?: SDKConfigure): AdenaSDK; } interface ArbitrarySignDocContent { chainId: string; signer: string; data: string; } interface VerifyArbitrarySignatureOptions { /** Address the proof must be issued by */ signer?: string; /** Network the proof must be bound to. Cosmos ADR-036 wallets sign with an empty chain id */ chainId?: string; /** Exact message, typically including a server-issued nonce, that must have been signed */ data?: string; } /** * Builds the ADR-036 document signed by `SignArbitrary`. * * Account number, sequence and gas are fixed at zero and the fee carries no * coins, so the document is a pure function of (chainId, signer, data). Adena * binds the connected network's chain id; pass `''` for the plain Cosmos form. */ declare function makeArbitrarySignDoc(chainId: string, signer: string, data: string): TxSignPayload; /** * Serializes a sign document into the bytes that are hashed and signed: keys * sorted, `<`, `>` and `&` escaped as Go's JSON encoder does, then UTF-8. * Byte-identical to `serializeSignDoc` from `@cosmjs/amino`. */ declare function getArbitrarySignBytes(doc: TxSignPayload): Uint8Array; /** * Reads the chain id, signer and decoded message out of an ADR-036 document. * Returns `null` when the document is not a single `sign/MsgSignData` message * carrying UTF-8 data. */ declare function parseArbitrarySignDoc(doc: unknown): ArbitrarySignDocContent | null; /** * Verifies a `SignArbitrary` proof according to ADR-036. * * The proof is accepted only when the public key derives the signer address, * the document is the canonical ADR-036 form (any other field, fee, sequence or * extra message makes it fail), and the signature is a valid low-S Secp256k1 * signature over it. Each field given in `expected` must match as well; pin at * least `signer`, `chainId` and a nonce-bearing `data` to prevent replay. * * Never throws: malformed input resolves to `false`. */ declare function verifyArbitrarySignature(proof: SignedArbitraryData, expected?: VerifyArbitrarySignatureOptions): Promise; declare const hexToUint8Array: (hexString: string) => Uint8Array; /** * encode a transaction to base64 * * @param transaction * @returns */ declare const encodeTransaction: (transaction: Tx) => string; declare const makeResponseMessage: (messageType: WalletResponseType, data?: D) => WalletResponse; /** * Validate the network input. * @param options - Options for adding a network * @param options.chainId * @param options.chainName * @param options.rpcUrl * @returns {boolean} true if all required fields are present and the RPC URL contains no spaces, false otherwise */ declare const validateNetworkInput: (options: AddNetworkOptions) => boolean; /** * Normalize the RPC URL * Removes trailing slash(/) from the URL * * @param rpcUrl - RPC URL to normalize * @returns {string} RPC URL with trailing slash removed * * @example * const normalizedUrl = normalizeRpcUrl("https://example.com/"); * returns: "https://example.com" */ declare const normalizeRpcUrl: (rpcUrl: string) => string; declare function isTM2WalletProvider(wallet: WalletProvider): wallet is TM2WalletProvider; declare function isGnoSocialWalletProvider(wallet: WalletProvider): wallet is GnoSocialWalletProvider; declare function setSessionStorageItem(key: string, value: string): void; declare function getSessionStorageItem(key: string): string | null; declare function removeSessionStorageItem(key: string): void; declare function makeAddPackageMessage(value: MsgAddPackage): AddPackageMessage; declare function makeMsgCallMessage(value: MsgCall): MsgCallMessage; declare function makeMsgSendMessage(value: MsgSend): MsgSendMessage; declare function makeMsgRunMessage(value: MsgRun): MsgRunMessage; declare function makeMsgEnablePackageMessage(value: MsgEnablePackage): MsgEnablePackageMessage; declare function makeMsgRejectPackageMessage(value: MsgRejectPackage): MsgRejectPackageMessage; declare function makeMsgCreateSessionMessage(value: MsgCreateSession): MsgCreateSessionMessage; declare function makeMsgRevokeSessionMessage(value: MsgRevokeSession): MsgRevokeSessionMessage; declare function makeMsgRevokeAllSessionsMessage(value: MsgRevokeAllSessions): MsgRevokeAllSessionsMessage; declare function encodeTransactionMessage(message: TransactionMessage): Uint8Array; declare function decodeTransactionMessage(message: Any): TransactionMessage; declare const defaultGasWanted = 10000000; declare class TransactionBuilder { private _messages; private _memo; private _gasWanted; private _gasFee; messages(...messages: TransactionMessage[]): TransactionBuilder; fee(amount: number, denom: string): TransactionBuilder; gasWanted(amount: number): TransactionBuilder; memo(memo: string): TransactionBuilder; private get txMessages(); private get txFee(); build(): Tx; static create(): TransactionBuilder; } export { ADENA_SUCCESS_CODE, ARBITRARY_MSG_TYPE, type AccountInfo, type AccountStatusType, type AddEstablishOptions, type AddEstablishResponse$1 as AddEstablishResponse, AddEstablishResponseType, type AddNetworkOptions, type AddNetworkResponse$1 as AddNetworkResponse, type AddPackageMessage, type AdenaAddEstablish, type AddEstablishResponse as AdenaAddEstablishResponse, type AdenaAddNetwork, type AdenaBroadcastMultisigTransaction, type AdenaCosmos, type AdenaCreateMultisigAccount, type CreateMultisigAccountResponse$1 as AdenaCreateMultisigAccountResponse, type AdenaCreateMultisigTransaction, type CreateMultisigTransactionResponse$1 as AdenaCreateMultisigTransactionResponse, type AdenaDoContract, type AdenaGetAccount, type AdenaGetNetwork, type AdenaOnEvent, type AdenaResponse, type AdenaResponseStatus, AdenaSDK, type AdenaSign, type AdenaSignArbitrary, type SignArbitraryResponse as AdenaSignArbitraryResponse, type AdenaSignMultisigTransaction, type SignMultisigTransactionResponse$1 as AdenaSignMultisigTransactionResponse, type AdenaSignTx, type AdenaSwitchNetwork, type AdenaWallet, AdenaWalletProvider, type ArbitraryMessage, type ArbitrarySignDocContent, type ArbitrarySignature, type BroadcastMultisigTransactionOptions, type BroadcastMultisigTransactionResopnse, type BroadcastMultisigTransactionResponse, type BroadcastTransactionOptions, type BroadcastTransactionResponse, BroadcastType, type CUSTOM_LOGIN_PROVIDER_TYPE, type ConnectOptions, type ConnectResponse, ConnectionManager, ConnectionState, ConnectionStateManager, type ContractOptions, type CosmosAccountData, type CosmosAminoMsg, type CosmosAminoSignResponse, type CosmosBroadcastMode, type CosmosDirectSignResponse, type CosmosKey, type CosmosOfflineAminoSigner, type CosmosOfflineDirectSigner, type CosmosSendTxResult, type CosmosSignDoc, type CosmosStdFee, type CosmosStdSignDoc, type CosmosStdSignature, type CreateMultisigAccountOptions, type CreateMultisigAccountParams, type CreateMultisigAccountResponse, type CreateMultisigAccountResponseData, type CreateMultisigTransactionOptions, type CreateMultisigTransactionParams, type CreateMultisigTransactionResponse, type CreateMultisigTransactionResponseData, DEFAULT_RPC_URL, type DeepPartial, type DisconnectResponse, type DoContractResponse, type EnableCosmosResponse, Event, EventAttribute, type Exact, GNO_ADDRESS_PREFIX, type GetAccountResponse$1 as GetAccountResponse, type GetAccountResponseData, type GetConnectionState, type GetCosmosKeyResponse, type GetNetworkResponse$1 as GetNetworkResponse, type GetNetworkResponseData, type GetSocialUserProfileResponse, GnoSocialWalletProvider, GnoWalletProvider, type IsConnectedResponse, LOGIN_PROVIDER, type LOGIN_PROVIDER_TYPE, MAX_ARBITRARY_MESSAGE_BYTES, type MessageFns, type MsgCallMessage, type MsgCreateSessionMessage, type MsgEnablePackageMessage, type MsgRejectPackageMessage, type MsgRevokeAllSessionsMessage, type MsgRevokeSessionMessage, type MsgRunMessage, type MsgSendMessage, type MultisigConfig, type MultisigRawMessage, type MultisigRawTransaction, type MultisigSignature, type MultisigTransactionDocument, type NetworkInfo, type OffConnectionChangeOptions, type OffConnectionChangeResponse, type OnAccountChangeFunc, type OnChangeAccountOptions, type OnChangeAccountResponse, type OnChangeNetworkOptions, type OnChangeNetworkResponse, type OnConnectionChangeOptions, type OnConnectionChangeResponse, type OnNetworkChangeFunc, type SDKConfigure, type SDKConnectionConfigure, type SendCosmosTxResponse, type SignArbitraryOptions, type SignArbitraryParams, type SignArbitraryResponse$1 as SignArbitraryResponse, type SignCosmosAminoResponse, type SignCosmosDirectResponse, type SignDocument, type SignMultisigTransactionOptions, type SignMultisigTransactionResponse, type SignMultisigTransactionResponseData, type SignTransactionData, type SignTransactionOptions, type SignTransactionResponse, type Signature, type SignedArbitraryData, type SignedDocument, type SingTransaction, type SocialEmailPasswordlessConfigure, type SocialExtraLoginOptions, type SocialGoogleConfigure, type SocialTwitterConfigure, SocialType, type SocialUserInfo, StorageDepositEvent, StorageUnlockEvent, type SwitchNetworkOptions, type SwitchNetworkResponse$1 as SwitchNetworkResponse, SwitchNetworkResponseType, type TM2WalletProvider, TransactionBuilder, type TransactionData, type TransactionMessage, type TransactionMessageType, type TransactionMessageValue, type TransactionParams, type TransactionResult, type TransactionResultCommit, type TransactionResultSync, type VerifyArbitrarySignatureOptions, type WalletConnectionEvent, type WalletListener, WalletMessageInfo, type WalletProvider, type WalletResponse, WalletResponseExecuteType, WalletResponseFailureType, WalletResponseRejectType, WalletResponseStatus, WalletResponseSuccessType, type WalletResponseType, type WalletState, decodeTransactionMessage, defaultGasWanted, encodeTransaction, encodeTransactionMessage, getArbitrarySignBytes, getSessionStorageItem, hexToUint8Array, isGnoSocialWalletProvider, isTM2WalletProvider, makeAddPackageMessage, makeArbitrarySignDoc, makeMsgCallMessage, makeMsgCreateSessionMessage, makeMsgEnablePackageMessage, makeMsgRejectPackageMessage, makeMsgRevokeAllSessionsMessage, makeMsgRevokeSessionMessage, makeMsgRunMessage, makeMsgSendMessage, makeResponseMessage, normalizeRpcUrl, parseArbitrarySignDoc, protobufPackage, removeSessionStorageItem, setSessionStorageItem, validateNetworkInput, verifyArbitrarySignature };