UNPKG

@mysten/wallet-standard

Version:

A suite of standard utilities for implementing wallets based on the Wallet Standard.

27 lines (26 loc) 1.18 kB
import type { IdentifierString, WalletAccount } from '@wallet-standard/core'; /** Name of the feature. */ export declare const SuiReportTransactionEffects = "sui:reportTransactionEffects"; /** The latest API version of the reportTransactionEffects API. */ export type SuiReportTransactionEffectsVersion = '1.0.0'; /** * A Wallet Standard feature for reporting the effects of a transaction block executed by a dapp * The feature allows wallets to updated their caches using the effects of the transaction * executed outside of the wallet */ export type SuiReportTransactionEffectsFeature = { /** Namespace for the feature. */ [SuiReportTransactionEffects]: { /** Version of the feature API. */ version: SuiReportTransactionEffectsVersion; reportTransactionEffects: SuiReportTransactionEffectsMethod; }; }; export type SuiReportTransactionEffectsMethod = (input: SuiReportTransactionEffectsInput) => Promise<void>; /** Input for signing transactions. */ export interface SuiReportTransactionEffectsInput { account: WalletAccount; chain: IdentifierString; /** Transaction effects as base64 encoded bcs. */ effects: string; }