/** * Porto Wallet Actions. * * Note: These Actions will eventually be upstreamed into `viem` once an * API is solidified & stable. */ import { type Calls, type Chain, type Client, type Narrow, type PrivateKeyAccount, type Transport, type WalletActions as viem_WalletActions } from 'viem'; import * as RpcSchema from '../core/RpcSchema.js'; import * as Account from './Account.js'; import type { GetAccountParameter } from './internal/utils.js'; declare const supportedWalletActions: ["getAddresses", "getCallsStatus", "getCallsHistory", "getCapabilities", "getChainId", "requestAddresses", "sendCalls", "showCallsStatus", "signMessage", "signTypedData", "showCallsStatus", "waitForCallsStatus", "writeContract"]; export declare function addFunds(client: Client, parameters: addFunds.Parameters): Promise; export declare namespace addFunds { type Parameters = RpcSchema.wallet_addFunds.Parameters; type ReturnType = RpcSchema.wallet_addFunds.Response; } export declare function getAssets(client: Client, ...parameters: account extends undefined ? [getAssets.Parameters] : [getAssets.Parameters] | []): Promise; export declare namespace getAssets { type Parameters = Omit & GetAccountParameter; type ReturnType = RpcSchema.wallet_getAssets.Response; } export declare function connect(client: Client, parameters?: connect.Parameters): Promise; export declare namespace connect { type Parameters = RpcSchema.wallet_connect.Capabilities & Omit; type ReturnType = RpcSchema.wallet_connect.Response; } export declare function disconnect(client: Client): Promise; export declare function getAdmins(client: Client, parameters?: getAdmins.Parameters): Promise; export declare namespace getAdmins { type Parameters = RpcSchema.wallet_getAdmins.Parameters; type ReturnType = RpcSchema.wallet_getAdmins.Response; } export declare function getCallsHistory(client: Client, parameters: getCallsHistory.Parameters): Promise; export declare namespace getCallsHistory { type Parameters = Omit & GetAccountParameter; type ReturnType = RpcSchema.wallet_getCallsHistory.Response; } export declare function getPermissions(client: Client, parameters?: getPermissions.Parameters): Promise; export declare namespace getPermissions { type Parameters = RpcSchema.wallet_getPermissions.Parameters; type ReturnType = RpcSchema.wallet_getPermissions.Response; } export declare function grantAdmin(client: Client, parameters: grantAdmin.Parameters): Promise; export declare namespace grantAdmin { type Parameters = RpcSchema.wallet_grantAdmin.Capabilities & Omit; type ReturnType = RpcSchema.wallet_grantAdmin.Response; } export declare function grantPermissions(client: Client, parameters: grantPermissions.Parameters): Promise; export declare namespace grantPermissions { type Parameters = RpcSchema.wallet_grantPermissions.Parameters; type ReturnType = RpcSchema.wallet_grantPermissions.Response; } export declare function prepareCalls(client: Client, parameters: prepareCalls.Parameters): Promise; export declare namespace prepareCalls { type Parameters = Omit & { calls?: Calls> | undefined; }; type ReturnType = RpcSchema.wallet_prepareCalls.Response; } export declare function revokeAdmin(client: Client, parameters: revokeAdmin.Parameters): Promise; export declare namespace revokeAdmin { type Parameters = RpcSchema.wallet_revokeAdmin.Parameters; } export declare function revokePermissions(client: Client, parameters: revokePermissions.Parameters): Promise; export declare namespace revokePermissions { type Parameters = RpcSchema.wallet_revokePermissions.Capabilities & Omit; } export declare function sendPreparedCalls(client: Client, parameters: sendPreparedCalls.Parameters): Promise; export declare namespace sendPreparedCalls { type Parameters = RpcSchema.wallet_sendPreparedCalls.Parameters; type ReturnType = RpcSchema.wallet_sendPreparedCalls.Response; } export declare function upgradeAccount(client: Client, parameters: upgradeAccount.Parameters): Promise; export declare namespace upgradeAccount { type Parameters = RpcSchema.wallet_prepareUpgradeAccount.Capabilities & Omit & { account: PrivateKeyAccount | Account.Account; }; type ReturnType = RpcSchema.wallet_upgradeAccount.Response; } export type Decorator = Pick & { getCallsHistory: (parameters: getCallsHistory.Parameters) => Promise; }, (typeof supportedWalletActions)[number]> & { connect: (parameters: connect.Parameters) => Promise; disconnect: () => Promise; getPermissions: (parameters: getPermissions.Parameters) => Promise; getCallsHistory: (parameters: getCallsHistory.Parameters) => Promise; grantPermissions: (parameters: grantPermissions.Parameters) => Promise; prepareCalls: (parameters: prepareCalls.Parameters) => Promise; revokePermissions: (parameters: revokePermissions.Parameters) => Promise; sendPreparedCalls: (parameters: sendPreparedCalls.Parameters) => Promise; upgradeAccount: (parameters: upgradeAccount.Parameters) => Promise; }; export declare function decorator(client: Client): Decorator; export {}; //# sourceMappingURL=WalletActions.d.ts.map