Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2025 v0.1.0 Nov 28, 2025 Changes in this version + type Guard struct + func NewGuard(integration Integration) *Guard + func (g *Guard) AllowDistribution(ctx context.Context, owner *common.Account, isPublic bool) (bool, error) + func (g *Guard) AllowOpenAccounts(ctx context.Context, owner *common.Account, ...) (bool, error) + func (g *Guard) AllowReceivePayments(ctx context.Context, owner *common.Account, isPublic bool) (bool, error) + func (g *Guard) AllowSendPayment(ctx context.Context, owner, destination *common.Account, isPublic bool) (bool, error) + func (g *Guard) AllowSwap(ctx context.Context, owner, fromMint, toMint *common.Account) (bool, error) + func (g *Guard) AllowWelcomeBonus(ctx context.Context, owner *common.Account) (bool, error) + type Integration interface + AllowDistribution func(ctx context.Context, owner *common.Account, isPublic bool) (bool, string, error) + AllowOpenAccounts func(ctx context.Context, owner *common.Account, ...) (bool, string, error) + AllowReceivePayments func(ctx context.Context, owner *common.Account, isPublic bool) (bool, string, error) + AllowSendPayment func(ctx context.Context, owner, destination *common.Account, isPublic bool) (bool, string, error) + AllowSwap func(ctx context.Context, owner, fromMint, toMint *common.Account) (bool, string, error) + AllowWelcomeBonus func(ctx context.Context, owner *common.Account) (bool, string, error) + func NewAllowEverything() Integration