Interface SmartWalletPluginInterface
interface SmartWalletPluginInterface { addGuardian( walletAddress: string, guardian: string, ): Promise<ExecutionResult>; addSigner(walletAddress: string, signer: string): Promise<ExecutionResult>; approveProposal( walletAddress: string, proposalId: number, ): Promise<ExecutionResult>; approveRecovery(walletAddress: string): Promise<ExecutionResult>; connectWallet(): Promise<void>; createWallet( owner: string, requiredSignatures?: number, requiredGuardians?: number, ): Promise<WalletCreateResult>; createWalletWithGuardians( owner: string, guardians: string[], requiredSignatures?: number, requiredGuardians?: number, ): Promise<WalletCreateResult>; executeBatch( walletAddress: string, targets: string[], dataArray: string[], values: string[], ): Promise<ExecutionResult>; executeRecovery(walletAddress: string): Promise<ExecutionResult>; executeTransaction( walletAddress: string, target: string, data: string, value?: string, ): Promise<ExecutionResult>; getOwnerWallets(ownerAddress: string): Promise<string[]>; getProposalInfo( walletAddress: string, proposalId: number, ): Promise<null | ProposalInfo>; getRecoveryRequest(walletAddress: string): Promise<null | RecoveryRequest>; getWalletInfo(walletAddress: string): Promise<null | WalletInfo>; initiateRecovery( walletAddress: string, newOwner: string, ): Promise<ExecutionResult>; proposeExecution( walletAddress: string, target: string, data: string, ): Promise<ExecutionResult>; removeGuardian( walletAddress: string, guardian: string, ): Promise<ExecutionResult>; removeSigner( walletAddress: string, signer: string, ): Promise<ExecutionResult>; setRequiredSignatures( walletAddress: string, required: number, ): Promise<ExecutionResult>; setSigner(privateKey: string): Promise<void>;} Methods
addGuardian
addGuardian(walletAddress: string, guardian: string): Promise<ExecutionResult> Parameters
- walletAddress: string
- guardian: string
addSigner
Parameters
- walletAddress: string
- signer: string
approveProposal
approveProposal( walletAddress: string, proposalId: number,): Promise<ExecutionResult> Parameters
- walletAddress: string
- proposalId: number
connectWallet
connectWallet(): Promise<void> Returns Promise<void>
createWallet
createWallet( owner: string, requiredSignatures?: number, requiredGuardians?: number,): Promise<WalletCreateResult> Parameters
- owner: string
OptionalrequiredSignatures: numberOptionalrequiredGuardians: number
createWalletWithGuardians
createWalletWithGuardians( owner: string, guardians: string[], requiredSignatures?: number, requiredGuardians?: number,): Promise<WalletCreateResult> Parameters
- owner: string
- guardians: string[]
OptionalrequiredSignatures: numberOptionalrequiredGuardians: number
executeBatch
executeBatch( walletAddress: string, targets: string[], dataArray: string[], values: string[],): Promise<ExecutionResult> Parameters
- walletAddress: string
- targets: string[]
- dataArray: string[]
- values: string[]
executeTransaction
executeTransaction( walletAddress: string, target: string, data: string, value?: string,): Promise<ExecutionResult> Parameters
- walletAddress: string
- target: string
- data: string
Optionalvalue: string
getOwnerWallets
getOwnerWallets(ownerAddress: string): Promise<string[]> Returns Promise<string[]>
getProposalInfo
getProposalInfo( walletAddress: string, proposalId: number,): Promise<null | ProposalInfo> Parameters
- walletAddress: string
- proposalId: number
getWalletInfo
getWalletInfo(walletAddress: string): Promise<null | WalletInfo>
initiateRecovery
initiateRecovery( walletAddress: string, newOwner: string,): Promise<ExecutionResult> Parameters
- walletAddress: string
- newOwner: string
proposeExecution
proposeExecution( walletAddress: string, target: string, data: string,): Promise<ExecutionResult> Parameters
- walletAddress: string
- target: string
- data: string
removeGuardian
removeGuardian( walletAddress: string, guardian: string,): Promise<ExecutionResult> Parameters
- walletAddress: string
- guardian: string
removeSigner
removeSigner(walletAddress: string, signer: string): Promise<ExecutionResult> Parameters
- walletAddress: string
- signer: string
setRequiredSignatures
setRequiredSignatures( walletAddress: string, required: number,): Promise<ExecutionResult> Parameters
- walletAddress: string
- required: number
setSigner
setSigner(privateKey: string): Promise<void>
Interface for SmartWallet plugin