@unilogin/sdk
Version:
SDK is a JS library, that communicates with relayer. SDK allows managing contract, by creating basic contract-calling messages.
46 lines • 1.27 kB
TypeScript
import { ApplicationWallet, SerializableFutureWallet } from '@unilogin/commons';
import { DeployedWallet } from '../../api/wallet/DeployedWallet';
import { FutureWallet } from '../../api/wallet/FutureWallet';
import { ConnectingWallet } from '../../api/wallet/ConnectingWallet';
import { DeployingWallet } from '../../api/wallet/DeployingWallet';
export declare type SerializedDeployingWallet = ApplicationWallet & {
deploymentHash: string;
};
export declare type WalletState = {
kind: 'None';
} | {
kind: 'Future';
name: string;
wallet: FutureWallet;
} | {
kind: 'Connecting';
wallet: ConnectingWallet;
} | {
kind: 'Deploying';
wallet: DeployingWallet;
transactionHash?: string;
} | {
kind: 'Deployed';
wallet: DeployedWallet;
};
export declare type SerializedWalletState = {
kind: 'None';
} | {
kind: 'Future';
name: string;
wallet: SerializableFutureWallet;
} | {
kind: 'Deploying';
wallet: SerializedDeployingWallet;
} | {
kind: 'Connecting';
wallet: ApplicationWallet;
} | {
kind: 'Deployed';
wallet: ApplicationWallet;
};
export interface WalletStorage {
load(): SerializedWalletState;
save(state: SerializedWalletState): void;
}
//# sourceMappingURL=WalletService.d.ts.map