Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("not implemented")
Functions ¶
This section is empty.
Types ¶
type AuthSecretKey ¶ added in v2.0.2
type AuthSecretKey string
func (AuthSecretKey) Sign ¶ added in v2.0.2
func (k AuthSecretKey) Sign(timestamp time.Time, data []byte) (AuthSignature, error)
type AuthSignature ¶ added in v2.0.2
type AuthSignature string
func (AuthSignature) String ¶ added in v2.0.2
func (s AuthSignature) String() string
type Client ¶
type Client interface { URL() string APIKey() string VaultID() string AuthSecretKey() *AuthSecretKey Sign(ctx context.Context, options SignOptions) (SignResult, error) CreateWallet(ctx context.Context, options CreateWalletOptions) (Wallet, error) GetWallet(ctx context.Context, address common.Address) (Wallet, error) ListWallets(ctx context.Context, options ListWalletsOptions) (ListWalletsResult, error) UpdateWallet(ctx context.Context, address common.Address, options UpdateWalletOptions) (Wallet, error) ExpireWallet(ctx context.Context, address common.Address) (Wallet, error) UnexpireWallet(ctx context.Context, address common.Address) (Wallet, error) VaultStatus(ctx context.Context) (VaultStatus, error) }
func NewClient ¶
func NewClient(options ClientOptions) (Client, error)
type ClientOptions ¶
type ClientOptions interface { URL() *string SetURL(url string) ClientOptions UnsetURL() ClientOptions APIKey() string SetAPIKey(apiKey string) ClientOptions VaultID() string SetVaultID(vaultId string) ClientOptions AuthSecretKey() *AuthSecretKey SetAuthSecretKey(authSecretKey AuthSecretKey) ClientOptions SetAuthSecretKeyFromString(authSecretKey string) ClientOptions SetAuthSecretKeyFromEnv() ClientOptions }
func NewClientOptions ¶
func NewClientOptions() ClientOptions
type CreateWalletOptions ¶
type CreateWalletOptions interface { Name() string SetName(name string) CreateWalletOptions }
func NewCreateWalletOptions ¶
func NewCreateWalletOptions() CreateWalletOptions
type ListWalletsOptions ¶
type ListWalletsOptions interface { Offset() *int64 SetOffset(offset int64) ListWalletsOptions Count() *int64 SetCount(count int64) ListWalletsOptions }
func NewListWalletsOptions ¶
func NewListWalletsOptions() ListWalletsOptions
type ListWalletsResult ¶
type SignOptions ¶
type SignOptions interface { Chain() Chain SetChain(chain Chain) SignOptions Contract() common.Address SetContract(contract common.Address) SignOptions Sender() common.Address SetSender(sender common.Address) SignOptions Uniq() *[]byte SetUniq(uniq []byte) SignOptions UnsetUniq() SignOptions Signer() *common.Address SetSigner(signer common.Address) SignOptions UnsetSigner() SignOptions ABI() map[string]any SetABI(abi map[string]any) SignOptions Args() []any SetArgs(args []any) SignOptions }
func NewSignOptions ¶
func NewSignOptions() SignOptions
type SignResult ¶
type UpdateWalletOptions ¶
type UpdateWalletOptions interface { Name() string SetName(name string) UpdateWalletOptions }
func NewUpdateWalletOptions ¶
func NewUpdateWalletOptions() UpdateWalletOptions
type VaultStatus ¶
Click to show internal directories.
Click to hide internal directories.