sui-svelte-wallet-kit
Version:
Svelte 5 wallet kit for Sui: connect wallets, manage accounts, SuiNS, balance, sign transactions/messages
27 lines (26 loc) • 971 B
JavaScript
/**
* MultisigService Types
* Defines interfaces and types for multisig wallet operations
*/
// Error codes for multisig operations
export var MultisigErrorCode;
(function (MultisigErrorCode) {
MultisigErrorCode["INVALID_CONFIG"] = "INVALID_CONFIG";
MultisigErrorCode["INVALID_THRESHOLD"] = "INVALID_THRESHOLD";
MultisigErrorCode["INVALID_SIGNER"] = "INVALID_SIGNER";
MultisigErrorCode["INSUFFICIENT_SIGNATURES"] = "INSUFFICIENT_SIGNATURES";
MultisigErrorCode["SIGNER_NOT_FOUND"] = "SIGNER_NOT_FOUND";
MultisigErrorCode["SIGNATURE_FAILED"] = "SIGNATURE_FAILED";
MultisigErrorCode["NETWORK_ERROR"] = "NETWORK_ERROR";
})(MultisigErrorCode || (MultisigErrorCode = {}));
// Custom error class for multisig operations
export class MultisigError extends Error {
code;
cause;
constructor(code, message, cause) {
super(message);
this.code = code;
this.cause = cause;
this.name = 'MultisigError';
}
}