lock_release_pool

package
v0.0.0-...-773544c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Code generated by stellar-bindings-generator. DO NOT EDIT.

Code generated by stellar-bindings-generator. DO NOT EDIT.

Index

Constants

View Source
const (
	CCIPErrorNotInitialized                      = 1
	CCIPErrorAlreadyInitialized                  = 2
	CCIPErrorUnauthorized                        = 3
	CCIPErrorNotOwner                            = 4
	CCIPErrorNoPendingOwner                      = 5
	CCIPErrorCallerNotAuthorized                 = 6
	CCIPErrorCallerAlreadyAuthorized             = 7
	CCIPErrorCallerNotFound                      = 8
	CCIPErrorRoleNotGranted                      = 9
	CCIPErrorFeatureNotEnabled                   = 10
	CCIPErrorRoleAlreadyGranted                  = 11
	CCIPErrorCannotRenounceRole                  = 12
	CCIPErrorInvalidVersionTag                   = 13
	CCIPErrorInvalidSignatureLength              = 14
	CCIPErrorInvalidSignature                    = 15
	CCIPErrorInvalidSignatureCount               = 16
	CCIPErrorInvalidSignatureThreshold           = 17
	CCIPErrorInvalidSignaturePubkey              = 18
	CCIPErrorSourceSignersNotConfigured          = 19
	CCIPErrorInvalidVerifierResults              = 20
	CCIPErrorReentrantCall                       = 21
	CCIPErrorTokenNotSupported                   = 22
	CCIPErrorFeeTokenNotSupported                = 23
	CCIPErrorNoGasPriceAvailable                 = 24
	CCIPErrorDestinationChainNotEnabled          = 25
	CCIPErrorInvalidExtraArgsTag                 = 26
	CCIPErrorInvalidExtraArgsData                = 27
	CCIPErrorMessageGasLimitTooHigh              = 28
	CCIPErrorMessageTooLarge                     = 29
	CCIPErrorUnsupportedNumberOfTokens           = 30
	CCIPErrorInvalidDestChainConfig              = 31
	CCIPErrorMessageFeeTooHigh                   = 32
	CCIPErrorInvalidStaticConfig                 = 33
	CCIPErrorInvalidTokenReceiver                = 34
	CCIPErrorSourceTokenDataTooLarge             = 35
	CCIPErrorInvalidDestBytesOverhead            = 36
	CCIPErrorDestinationChainNotSupported        = 37
	CCIPErrorMustBeCalledByRouter                = 38
	CCIPErrorRouterMustSetOriginalSender         = 39
	CCIPErrorCannotSendZeroTokens                = 40
	CCIPErrorCanOnlySendOneTokenPerMessage       = 41
	CCIPErrorUnsupportedToken                    = 42
	CCIPErrorInvalidDestChainAddress             = 43
	CCIPErrorFeeExceedsMaxAllowed                = 44
	CCIPErrorInsufficientFeeTokenAmount          = 45
	CCIPErrorTokenReceiverNotAllowed             = 46
	CCIPErrorCursedByRMN                         = 47
	CCIPErrorRemoteChainNotSupported             = 48
	CCIPErrorSenderNotAllowed                    = 49
	CCIPErrorInvalidTokenAmount                  = 50
	CCIPErrorInvalidReceiverAddress              = 51
	CCIPErrorInvalidConfig                       = 52
	CCIPErrorInvalidVerifierResultsLength        = 53
	CCIPErrorInboundImplementationNotFound       = 54
	CCIPErrorOutboundImplementationNotFound      = 55
	CCIPErrorInvalidAddress                      = 56
	CCIPErrorInvalidChainSelector                = 57
	CCIPErrorInvalidVersion                      = 58
	CCIPErrorInvalidCCVVersion                   = 59
	CCIPErrorOffRampAlreadyExists                = 60
	CCIPErrorOffRampMismatch                     = 61
	CCIPErrorBadRMNSignal                        = 62
	CCIPErrorUnsupportedDestinationChain         = 63
	CCIPErrorAlreadyCursed                       = 64
	CCIPErrorConfigNotSet                        = 65
	CCIPErrorDuplicateOnchainPublicKey           = 66
	CCIPErrorInvalidSignerOrder                  = 67
	CCIPErrorNotEnoughSigners                    = 68
	CCIPErrorNotCursed                           = 69
	CCIPErrorOutOfOrderSignatures                = 70
	CCIPErrorThresholdNotMet                     = 71
	CCIPErrorUnexpectedSigner                    = 72
	CCIPErrorZeroValueNotAllowed                 = 73
	CCIPErrorSourceChainNotEnabled               = 100
	CCIPErrorInvalidSourceChainConfig            = 101
	CCIPErrorInvalidOnRampAddress                = 102
	CCIPErrorInvalidOffRampAddress               = 103
	CCIPErrorInvalidMessageDestination           = 104
	CCIPErrorMessageAlreadyExecuted              = 105
	CCIPErrorInvalidExecutionState               = 106
	CCIPErrorCCVLengthMismatch                   = 107
	CCIPErrorCCVQuorumNotMet                     = 108
	CCIPErrorReceiverError                       = 109
	CCIPErrorGasLimitOverrideTooLow              = 110
	CCIPErrorInvalidReceiverLength               = 111
	CCIPErrorTokenHandlingError                  = 112
	CCIPErrorMessageDecodingError                = 113
	CCIPErrorReceiverDoesNotExist                = 114
	CCIPErrorReceiverNotWasmContract             = 115
	CCIPErrorRequiredCCVMissing                  = 116
	CCIPErrorOnlyRegistryModuleOrOwner           = 201
	CCIPErrorOnlyAdministrator                   = 202
	CCIPErrorOnlyPendingAdministrator            = 203
	CCIPErrorTokenAlreadyRegistered              = 204
	CCIPErrorInvalidTokenPoolToken               = 205
	CCIPErrorPoolTokenMismatch                   = 301
	CCIPErrorChainNotSupported                   = 302
	CCIPErrorCallerIsNotRamp                     = 303
	CCIPErrorInsufficientPoolLiquidity           = 304
	CCIPErrorInvalidRemotePoolAddress            = 305
	CCIPErrorInvalidRemoteChainConfig            = 306
	CCIPErrorInvalidRemoteChainDecimals          = 307
	CCIPErrorDecimalAmountOverflow               = 308
	CCIPErrorInvalidPoolTokenDecimals            = 309
	CCIPErrorBucketOverfilled                    = 310
	CCIPErrorTokenMaxCapacityExceeded            = 311
	CCIPErrorTokenRateLimitReached               = 312
	CCIPErrorInvalidRateLimitRate                = 313
	CCIPErrorDisabledNonZeroRateLimit            = 314
	CCIPErrorInvalidRequestedFinality            = 315
	CCIPErrorRequestedFinalityCanOnlyHaveOneMode = 316
	CCIPErrorInvalidChainForClient               = 317
	CCIPErrorRouterNotConfigured                 = 318
	CCIPErrorInvalidFeeCalculation               = 801
	CCIPErrorInvalidFeeTokenConversion           = 802
	CCIPErrorZeroFeeAggregatorNotAllowed         = 803
)

CCIPError represents the contract error codes.

View Source
const AdvancedPoolHooksUpdatedEventTopic = "pool_HooksUpdated"

AdvancedPoolHooksUpdatedEventTopic is the event topic identifier.

View Source
const AuthorizedCallerAddedEventTopic = "auth_CallerAdded"

AuthorizedCallerAddedEventTopic is the event topic identifier.

View Source
const AuthorizedCallerRemovedEventTopic = "auth_CallerRemoved"

AuthorizedCallerRemovedEventTopic is the event topic identifier.

View Source
const BurnedEventTopic = "pool_Burned"

BurnedEventTopic is the event topic identifier.

View Source
const ChainConfiguredEventTopic = "pool_ChainConfigured"

ChainConfiguredEventTopic is the event topic identifier.

View Source
const ChainRemovedEventTopic = "pool_ChainRemoved"

ChainRemovedEventTopic is the event topic identifier.

View Source
const FinalityConfigSetEventTopic = "pool_FinalityConfigSet"

FinalityConfigSetEventTopic is the event topic identifier.

View Source
const FtfInboundConsumedEventTopic = "pool_FtfInboundConsumed"

FtfInboundConsumedEventTopic is the event topic identifier.

View Source
const FtfOutboundConsumedEventTopic = "pool_FtfOutboundConsumed"

FtfOutboundConsumedEventTopic is the event topic identifier.

View Source
const InboundRateLimitConsumedEventTopic = "pool_InboundRateLimitConsumed"

InboundRateLimitConsumedEventTopic is the event topic identifier.

View Source
const LockedEventTopic = "pool_Locked"

LockedEventTopic is the event topic identifier.

View Source
const MintedEventTopic = "pool_Minted"

MintedEventTopic is the event topic identifier.

View Source
const OutboundRateLimitConsumedEventTopic = "pool_OutboundRateLimitConsumed"

OutboundRateLimitConsumedEventTopic is the event topic identifier.

View Source
const OwnershipTransferStartedEventTopic = "auth_OwnerTransferStart"

OwnershipTransferStartedEventTopic is the event topic identifier.

View Source
const RateLimitConfiguredEventTopic = "pool_RateLimitConfigured"

RateLimitConfiguredEventTopic is the event topic identifier.

View Source
const ReleasedEventTopic = "pool_Released"

ReleasedEventTopic is the event topic identifier.

View Source
const RoleGrantedEventTopic = "auth_RoleGranted"

RoleGrantedEventTopic is the event topic identifier.

View Source
const RoleRevokedEventTopic = "auth_RoleRevoked"

RoleRevokedEventTopic is the event topic identifier.

Variables

View Source
var CCIPErrorMessage = map[int]string{}/* 116 elements not displayed */

CCIPErrorMessage returns a human-readable message for error codes.

Functions

This section is empty.

Types

type AdvancedPoolHooksUpdatedEvent

type AdvancedPoolHooksUpdatedEvent struct {
	OldHooks *string
	NewHooks *string
	// Event metadata
	Ledger uint32
	TxHash string
}

AdvancedPoolHooksUpdatedEvent represents the AdvancedPoolHooksUpdatedEvent event. Topics: [pool_HooksUpdated]

type AllowListEntry

type AllowListEntry struct {
	Allowlist        []string
	AllowlistEnabled bool
}

AllowListEntry represents the AllowListEntry struct from the contract.

func AllowListEntryFromScVal

func AllowListEntryFromScVal(val xdr.ScVal) (*AllowListEntry, error)

AllowListEntryFromScVal parses an xdr.ScVal into AllowListEntry.

func (AllowListEntry) ToScVal

func (s AllowListEntry) ToScVal() (xdr.ScVal, error)

ToScVal converts AllowListEntry to an xdr.ScVal for contract calls.

type AllowListUpdate

type AllowListUpdate struct {
	AddedAllowlistedSenders   []string
	AllowlistEnabled          bool
	DestChainSelector         uint64
	RemovedAllowlistedSenders []string
}

AllowListUpdate represents the AllowListUpdate struct from the contract.

func AllowListUpdateFromScVal

func AllowListUpdateFromScVal(val xdr.ScVal) (*AllowListUpdate, error)

AllowListUpdateFromScVal parses an xdr.ScVal into AllowListUpdate.

func (AllowListUpdate) ToScVal

func (s AllowListUpdate) ToScVal() (xdr.ScVal, error)

ToScVal converts AllowListUpdate to an xdr.ScVal for contract calls.

type AnyToStellarMessage

type AnyToStellarMessage struct {
	Data                []byte
	DestTokenAmounts    []TokenAmount
	MessageId           [32]byte
	Sender              []byte
	SourceChainSelector uint64
}

AnyToStellarMessage represents the AnyToStellarMessage struct from the contract.

func AnyToStellarMessageFromScVal

func AnyToStellarMessageFromScVal(val xdr.ScVal) (*AnyToStellarMessage, error)

AnyToStellarMessageFromScVal parses an xdr.ScVal into AnyToStellarMessage.

func (AnyToStellarMessage) ToScVal

func (s AnyToStellarMessage) ToScVal() (xdr.ScVal, error)

ToScVal converts AnyToStellarMessage to an xdr.ScVal for contract calls.

type AuthorizedCallerAddedEvent

type AuthorizedCallerAddedEvent struct {
	Caller string
	// Event metadata
	Ledger uint32
	TxHash string
}

AuthorizedCallerAddedEvent represents the AuthorizedCallerAddedEvent event. Topics: [auth_CallerAdded]

func ParseAuthorizedCallerAddedEvent

func ParseAuthorizedCallerAddedEvent(e protocolrpc.EventInfo) (*AuthorizedCallerAddedEvent, error)

type AuthorizedCallerRemovedEvent

type AuthorizedCallerRemovedEvent struct {
	Caller string
	// Event metadata
	Ledger uint32
	TxHash string
}

AuthorizedCallerRemovedEvent represents the AuthorizedCallerRemovedEvent event. Topics: [auth_CallerRemoved]

type BurnedEvent

type BurnedEvent struct {
	Sender string
	Amount int64
	// Event metadata
	Ledger uint32
	TxHash string
}

BurnedEvent represents the BurnedEvent event. Topics: [pool_Burned]

func ParseBurnedEvent

func ParseBurnedEvent(e protocolrpc.EventInfo) (*BurnedEvent, error)

type ChainConfiguredEvent

type ChainConfiguredEvent struct {
	RemoteChainSelector       uint64
	RemotePoolAddress         []byte
	RemoteTokenAddress        []byte
	OutboundRateLimiterConfig RateLimitConfig
	InboundRateLimiterConfig  RateLimitConfig
	// Event metadata
	Ledger uint32
	TxHash string
}

ChainConfiguredEvent represents the ChainConfiguredEvent event. Topics: [pool_ChainConfigured]

func ParseChainConfiguredEvent

func ParseChainConfiguredEvent(e protocolrpc.EventInfo) (*ChainConfiguredEvent, error)

type ChainRemovedEvent

type ChainRemovedEvent struct {
	RemoteChainSelector uint64
	// Event metadata
	Ledger uint32
	TxHash string
}

ChainRemovedEvent represents the ChainRemovedEvent event. Topics: [pool_ChainRemoved]

func ParseChainRemovedEvent

func ParseChainRemovedEvent(e protocolrpc.EventInfo) (*ChainRemovedEvent, error)

type ChainUpdate

type ChainUpdate struct {
	InboundRateLimiterConfig  RateLimitConfig
	OutboundRateLimiterConfig RateLimitConfig
	RemoteChainSelector       uint64
	RemotePoolAddresses       []byte
	RemoteTokenAddress        []byte
}

ChainUpdate represents the ChainUpdate struct from the contract.

func ChainUpdateFromScVal

func ChainUpdateFromScVal(val xdr.ScVal) (*ChainUpdate, error)

ChainUpdateFromScVal parses an xdr.ScVal into ChainUpdate.

func (ChainUpdate) ToScVal

func (s ChainUpdate) ToScVal() (xdr.ScVal, error)

ToScVal converts ChainUpdate to an xdr.ScVal for contract calls.

type FinalityConfigSetEvent

type FinalityConfigSetEvent struct {
	AllowedFinality uint32
	// Event metadata
	Ledger uint32
	TxHash string
}

FinalityConfigSetEvent represents the FinalityConfigSetEvent event. Topics: [pool_FinalityConfigSet]

func ParseFinalityConfigSetEvent

func ParseFinalityConfigSetEvent(e protocolrpc.EventInfo) (*FinalityConfigSetEvent, error)

type FtfInboundConsumedEvent

type FtfInboundConsumedEvent struct {
	RemoteChainSelector uint64
	Amount              int64
	// Event metadata
	Ledger uint32
	TxHash string
}

FtfInboundConsumedEvent represents the FtfInboundConsumedEvent event. Topics: [pool_FtfInboundConsumed]

func ParseFtfInboundConsumedEvent

func ParseFtfInboundConsumedEvent(e protocolrpc.EventInfo) (*FtfInboundConsumedEvent, error)

type FtfOutboundConsumedEvent

type FtfOutboundConsumedEvent struct {
	RemoteChainSelector uint64
	Amount              int64
	// Event metadata
	Ledger uint32
	TxHash string
}

FtfOutboundConsumedEvent represents the FtfOutboundConsumedEvent event. Topics: [pool_FtfOutboundConsumed]

func ParseFtfOutboundConsumedEvent

func ParseFtfOutboundConsumedEvent(e protocolrpc.EventInfo) (*FtfOutboundConsumedEvent, error)

type GenericExtraArgsV3

type GenericExtraArgsV3 struct {
	BlockConfirmations uint32
	CcvArgs            [][]byte
	Ccvs               []string
	Executor           string
	ExecutorArgs       []byte
	GasLimit           uint32
	TokenArgs          []byte
	TokenReceiver      []byte
}

GenericExtraArgsV3 represents the GenericExtraArgsV3 struct from the contract.

func GenericExtraArgsV3FromScVal

func GenericExtraArgsV3FromScVal(val xdr.ScVal) (*GenericExtraArgsV3, error)

GenericExtraArgsV3FromScVal parses an xdr.ScVal into GenericExtraArgsV3.

func (GenericExtraArgsV3) ToScVal

func (s GenericExtraArgsV3) ToScVal() (xdr.ScVal, error)

ToScVal converts GenericExtraArgsV3 to an xdr.ScVal for contract calls.

type InboundRateLimitConsumedEvent

type InboundRateLimitConsumedEvent struct {
	RemoteChainSelector uint64
	Amount              int64
	// Event metadata
	Ledger uint32
	TxHash string
}

InboundRateLimitConsumedEvent represents the InboundRateLimitConsumedEvent event. Topics: [pool_InboundRateLimitConsumed]

type LockOrBurnIn

type LockOrBurnIn struct {
	Amount              int64
	LocalToken          string
	OriginalSender      string
	Receiver            []byte
	RemoteChainSelector uint64
}

LockOrBurnIn represents the LockOrBurnIn struct from the contract.

func LockOrBurnInFromScVal

func LockOrBurnInFromScVal(val xdr.ScVal) (*LockOrBurnIn, error)

LockOrBurnInFromScVal parses an xdr.ScVal into LockOrBurnIn.

func (LockOrBurnIn) ToScVal

func (s LockOrBurnIn) ToScVal() (xdr.ScVal, error)

ToScVal converts LockOrBurnIn to an xdr.ScVal for contract calls.

type LockOrBurnOut

type LockOrBurnOut struct {
	DestPoolData     []byte
	DestTokenAddress []byte
}

LockOrBurnOut represents the LockOrBurnOut struct from the contract.

func LockOrBurnOutFromScVal

func LockOrBurnOutFromScVal(val xdr.ScVal) (*LockOrBurnOut, error)

LockOrBurnOutFromScVal parses an xdr.ScVal into LockOrBurnOut.

func (LockOrBurnOut) ToScVal

func (s LockOrBurnOut) ToScVal() (xdr.ScVal, error)

ToScVal converts LockOrBurnOut to an xdr.ScVal for contract calls.

type LockReleasePoolClient

type LockReleasePoolClient struct {
	// contains filtered or unexported fields
}

LockReleasePoolClient provides methods to interact with the LockReleasePool contract.

func NewLockReleasePoolClient

func NewLockReleasePoolClient(invoker bindings.Invoker, contractID string) *LockReleasePoolClient

NewLockReleasePoolClient creates a new LockReleasePoolClient.

func (*LockReleasePoolClient) AcceptOwnership

func (c *LockReleasePoolClient) AcceptOwnership(ctx context.Context) error

AcceptOwnership calls the accept_ownership function on the contract.

func (*LockReleasePoolClient) ApplyChainUpdates

func (c *LockReleasePoolClient) ApplyChainUpdates(ctx context.Context, adds []ChainUpdate, removes []uint64) error

ApplyChainUpdates calls the apply_chain_updates function on the contract.

func (*LockReleasePoolClient) CancelOwnershipTransfer

func (c *LockReleasePoolClient) CancelOwnershipTransfer(ctx context.Context) error

CancelOwnershipTransfer calls the cancel_ownership_transfer function on the contract.

func (*LockReleasePoolClient) ContractID

func (c *LockReleasePoolClient) ContractID() string

ContractID returns the contract ID.

func (*LockReleasePoolClient) GetAdvancedPoolHooks

func (c *LockReleasePoolClient) GetAdvancedPoolHooks(ctx context.Context) (*string, error)

GetAdvancedPoolHooks calls the get_advanced_pool_hooks function on the contract.

func (*LockReleasePoolClient) GetAllowedFinalityConfig

func (c *LockReleasePoolClient) GetAllowedFinalityConfig(ctx context.Context) (uint32, error)

GetAllowedFinalityConfig calls the get_allowed_finality_config function on the contract.

func (*LockReleasePoolClient) GetCurrentRateLimiterState

func (c *LockReleasePoolClient) GetCurrentRateLimiterState(ctx context.Context, remoteChainSelector uint64, fastFinality bool) (*RateLimiterState, error)

GetCurrentRateLimiterState calls the get_current_rate_limiter_state function on the contract.

func (*LockReleasePoolClient) GetFee

func (c *LockReleasePoolClient) GetFee(ctx context.Context, remoteChainSelector uint64) (*PoolFeeResult, error)

GetFee calls the get_fee function on the contract.

func (*LockReleasePoolClient) GetPendingOwner

func (c *LockReleasePoolClient) GetPendingOwner(ctx context.Context) (*string, error)

GetPendingOwner calls the get_pending_owner function on the contract.

func (*LockReleasePoolClient) GetRampRegistry

func (c *LockReleasePoolClient) GetRampRegistry(ctx context.Context) (*string, error)

GetRampRegistry calls the get_ramp_registry function on the contract.

func (*LockReleasePoolClient) GetRateLimitAdmin

func (c *LockReleasePoolClient) GetRateLimitAdmin(ctx context.Context) (*string, error)

GetRateLimitAdmin calls the get_rate_limit_admin function on the contract.

func (*LockReleasePoolClient) GetRemotePool

func (c *LockReleasePoolClient) GetRemotePool(ctx context.Context, remoteChainSelector uint64) ([]byte, error)

GetRemotePool calls the get_remote_pool function on the contract.

func (*LockReleasePoolClient) GetRemoteToken

func (c *LockReleasePoolClient) GetRemoteToken(ctx context.Context, remoteChainSelector uint64) ([]byte, error)

GetRemoteToken calls the get_remote_token function on the contract.

func (*LockReleasePoolClient) GetRequiredCcvs

func (c *LockReleasePoolClient) GetRequiredCcvs(ctx context.Context, localToken string, remoteChainSelector uint64, amount int64, requestedFinality uint32, extraData []byte, direction MessageDirection) (*PoolRequiredCCVs, error)

GetRequiredCcvs calls the get_required_ccvs function on the contract.

func (*LockReleasePoolClient) GetRouter

func (c *LockReleasePoolClient) GetRouter(ctx context.Context) (*string, error)

GetRouter calls the get_router function on the contract.

func (*LockReleasePoolClient) GetToken

func (c *LockReleasePoolClient) GetToken(ctx context.Context) (string, error)

GetToken calls the get_token function on the contract.

func (*LockReleasePoolClient) GetTokenDecimals

func (c *LockReleasePoolClient) GetTokenDecimals(ctx context.Context) (uint32, error)

GetTokenDecimals calls the get_token_decimals function on the contract.

func (*LockReleasePoolClient) InitOwner

func (c *LockReleasePoolClient) InitOwner(ctx context.Context, owner string) error

InitOwner calls the init_owner function on the contract.

func (*LockReleasePoolClient) Initialize

func (c *LockReleasePoolClient) Initialize(ctx context.Context, owner string, token string, tokenDecimals uint32, router string, rampRegistry string) error

Initialize calls the initialize function on the contract.

func (*LockReleasePoolClient) IsOwner

func (c *LockReleasePoolClient) IsOwner(ctx context.Context, addr string) (bool, error)

IsOwner calls the is_owner function on the contract.

func (*LockReleasePoolClient) IsSupportedChain

func (c *LockReleasePoolClient) IsSupportedChain(ctx context.Context, remoteChainSelector uint64) (bool, error)

IsSupportedChain calls the is_supported_chain function on the contract.

func (*LockReleasePoolClient) IsSupportedToken

func (c *LockReleasePoolClient) IsSupportedToken(ctx context.Context, token string) (bool, error)

IsSupportedToken calls the is_supported_token function on the contract.

func (*LockReleasePoolClient) LockOrBurn

func (c *LockReleasePoolClient) LockOrBurn(ctx context.Context, caller string, input LockOrBurnIn, requestedFinality uint32) (*LockOrBurnOut, error)

LockOrBurn calls the lock_or_burn function on the contract.

func (*LockReleasePoolClient) Owner

func (c *LockReleasePoolClient) Owner(ctx context.Context) (*string, error)

Owner calls the owner function on the contract.

func (*LockReleasePoolClient) ReleaseOrMint

func (c *LockReleasePoolClient) ReleaseOrMint(ctx context.Context, caller string, input ReleaseOrMintIn, requestedFinality uint32) (*ReleaseOrMintOut, error)

ReleaseOrMint calls the release_or_mint function on the contract.

func (*LockReleasePoolClient) RemoveAdvancedPoolHooks

func (c *LockReleasePoolClient) RemoveAdvancedPoolHooks(ctx context.Context) error

RemoveAdvancedPoolHooks calls the remove_advanced_pool_hooks function on the contract.

func (*LockReleasePoolClient) RequireOwner

func (c *LockReleasePoolClient) RequireOwner(ctx context.Context) (string, error)

RequireOwner calls the require_owner function on the contract.

func (*LockReleasePoolClient) SetAdvancedPoolHooks

func (c *LockReleasePoolClient) SetAdvancedPoolHooks(ctx context.Context, hooks string) error

SetAdvancedPoolHooks calls the set_advanced_pool_hooks function on the contract.

func (*LockReleasePoolClient) SetAllowedFinalityConfig

func (c *LockReleasePoolClient) SetAllowedFinalityConfig(ctx context.Context, allowedFinality uint32) error

SetAllowedFinalityConfig calls the set_allowed_finality_config function on the contract.

func (*LockReleasePoolClient) SetNewOwner

func (c *LockReleasePoolClient) SetNewOwner(ctx context.Context, newOwner string) error

SetNewOwner calls the set_new_owner function on the contract.

func (*LockReleasePoolClient) SetPoolFeeConfig

func (c *LockReleasePoolClient) SetPoolFeeConfig(ctx context.Context, remoteChainSelector uint64, config PoolFeeConfig) error

SetPoolFeeConfig calls the set_pool_fee_config function on the contract.

func (*LockReleasePoolClient) SetRampRegistry

func (c *LockReleasePoolClient) SetRampRegistry(ctx context.Context, rampRegistry string) error

SetRampRegistry calls the set_ramp_registry function on the contract.

func (*LockReleasePoolClient) SetRateLimitAdmin

func (c *LockReleasePoolClient) SetRateLimitAdmin(ctx context.Context, admin string) error

SetRateLimitAdmin calls the set_rate_limit_admin function on the contract.

func (*LockReleasePoolClient) SetRateLimitConfig

func (c *LockReleasePoolClient) SetRateLimitConfig(ctx context.Context, remoteChainSelector uint64, outboundConfig RateLimitConfig, inboundConfig RateLimitConfig, fastFinality bool) error

SetRateLimitConfig calls the set_rate_limit_config function on the contract.

func (*LockReleasePoolClient) SetRouter

func (c *LockReleasePoolClient) SetRouter(ctx context.Context, router string) error

SetRouter calls the set_router function on the contract.

func (*LockReleasePoolClient) TransferOwnership

func (c *LockReleasePoolClient) TransferOwnership(ctx context.Context, newOwner string) error

TransferOwnership calls the transfer_ownership function on the contract.

func (*LockReleasePoolClient) TypeAndVersion

func (c *LockReleasePoolClient) TypeAndVersion(ctx context.Context) (string, error)

TypeAndVersion calls the type_and_version function on the contract.

func (*LockReleasePoolClient) WaitForAdvancedPoolHooksUpdatedEvent

func (c *LockReleasePoolClient) WaitForAdvancedPoolHooksUpdatedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AdvancedPoolHooksUpdatedEvent) bool) (*AdvancedPoolHooksUpdatedEvent, error)

WaitForAdvancedPoolHooksUpdatedEvent waits for a AdvancedPoolHooksUpdatedEvent event.

func (*LockReleasePoolClient) WaitForAuthorizedCallerAddedEvent

func (c *LockReleasePoolClient) WaitForAuthorizedCallerAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerAddedEvent) bool) (*AuthorizedCallerAddedEvent, error)

WaitForAuthorizedCallerAddedEvent waits for a AuthorizedCallerAddedEvent event.

func (*LockReleasePoolClient) WaitForAuthorizedCallerRemovedEvent

func (c *LockReleasePoolClient) WaitForAuthorizedCallerRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerRemovedEvent) bool) (*AuthorizedCallerRemovedEvent, error)

WaitForAuthorizedCallerRemovedEvent waits for a AuthorizedCallerRemovedEvent event.

func (*LockReleasePoolClient) WaitForBurnedEvent

func (c *LockReleasePoolClient) WaitForBurnedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*BurnedEvent) bool) (*BurnedEvent, error)

WaitForBurnedEvent waits for a BurnedEvent event.

func (*LockReleasePoolClient) WaitForChainConfiguredEvent

func (c *LockReleasePoolClient) WaitForChainConfiguredEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*ChainConfiguredEvent) bool) (*ChainConfiguredEvent, error)

WaitForChainConfiguredEvent waits for a ChainConfiguredEvent event.

func (*LockReleasePoolClient) WaitForChainRemovedEvent

func (c *LockReleasePoolClient) WaitForChainRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*ChainRemovedEvent) bool) (*ChainRemovedEvent, error)

WaitForChainRemovedEvent waits for a ChainRemovedEvent event.

func (*LockReleasePoolClient) WaitForFinalityConfigSetEvent

func (c *LockReleasePoolClient) WaitForFinalityConfigSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*FinalityConfigSetEvent) bool) (*FinalityConfigSetEvent, error)

WaitForFinalityConfigSetEvent waits for a FinalityConfigSetEvent event.

func (*LockReleasePoolClient) WaitForFtfInboundConsumedEvent

func (c *LockReleasePoolClient) WaitForFtfInboundConsumedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*FtfInboundConsumedEvent) bool) (*FtfInboundConsumedEvent, error)

WaitForFtfInboundConsumedEvent waits for a FtfInboundConsumedEvent event.

func (*LockReleasePoolClient) WaitForFtfOutboundConsumedEvent

func (c *LockReleasePoolClient) WaitForFtfOutboundConsumedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*FtfOutboundConsumedEvent) bool) (*FtfOutboundConsumedEvent, error)

WaitForFtfOutboundConsumedEvent waits for a FtfOutboundConsumedEvent event.

func (*LockReleasePoolClient) WaitForInboundRateLimitConsumedEvent

func (c *LockReleasePoolClient) WaitForInboundRateLimitConsumedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*InboundRateLimitConsumedEvent) bool) (*InboundRateLimitConsumedEvent, error)

WaitForInboundRateLimitConsumedEvent waits for a InboundRateLimitConsumedEvent event.

func (*LockReleasePoolClient) WaitForLockedEvent

func (c *LockReleasePoolClient) WaitForLockedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*LockedEvent) bool) (*LockedEvent, error)

WaitForLockedEvent waits for a LockedEvent event.

func (*LockReleasePoolClient) WaitForMintedEvent

func (c *LockReleasePoolClient) WaitForMintedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*MintedEvent) bool) (*MintedEvent, error)

WaitForMintedEvent waits for a MintedEvent event.

func (*LockReleasePoolClient) WaitForOutboundRateLimitConsumedEvent

func (c *LockReleasePoolClient) WaitForOutboundRateLimitConsumedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*OutboundRateLimitConsumedEvent) bool) (*OutboundRateLimitConsumedEvent, error)

WaitForOutboundRateLimitConsumedEvent waits for a OutboundRateLimitConsumedEvent event.

func (*LockReleasePoolClient) WaitForOwnershipTransferStartedEvent

func (c *LockReleasePoolClient) WaitForOwnershipTransferStartedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*OwnershipTransferStartedEvent) bool) (*OwnershipTransferStartedEvent, error)

WaitForOwnershipTransferStartedEvent waits for a OwnershipTransferStartedEvent event.

func (*LockReleasePoolClient) WaitForRateLimitConfiguredEvent

func (c *LockReleasePoolClient) WaitForRateLimitConfiguredEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RateLimitConfiguredEvent) bool) (*RateLimitConfiguredEvent, error)

WaitForRateLimitConfiguredEvent waits for a RateLimitConfiguredEvent event.

func (*LockReleasePoolClient) WaitForReleasedEvent

func (c *LockReleasePoolClient) WaitForReleasedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*ReleasedEvent) bool) (*ReleasedEvent, error)

WaitForReleasedEvent waits for a ReleasedEvent event.

func (*LockReleasePoolClient) WaitForRoleGrantedEvent

func (c *LockReleasePoolClient) WaitForRoleGrantedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleGrantedEvent) bool) (*RoleGrantedEvent, error)

WaitForRoleGrantedEvent waits for a RoleGrantedEvent event.

func (*LockReleasePoolClient) WaitForRoleRevokedEvent

func (c *LockReleasePoolClient) WaitForRoleRevokedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleRevokedEvent) bool) (*RoleRevokedEvent, error)

WaitForRoleRevokedEvent waits for a RoleRevokedEvent event.

type LockedEvent

type LockedEvent struct {
	Sender string
	Amount int64
	// Event metadata
	Ledger uint32
	TxHash string
}

LockedEvent represents the LockedEvent event. Topics: [pool_Locked]

func ParseLockedEvent

func ParseLockedEvent(e protocolrpc.EventInfo) (*LockedEvent, error)

type MessageDirection

type MessageDirection uint32

MessageDirection represents the MessageDirection enum (unit-only Soroban contracttype, encoded as ScVal::U32).

const (
	MessageDirectionOutbound MessageDirection = 0
	MessageDirectionInbound  MessageDirection = 1
)

func MessageDirectionFromScVal

func MessageDirectionFromScVal(val xdr.ScVal) (MessageDirection, error)

MessageDirectionFromScVal parses an xdr.ScVal into MessageDirection.

func (MessageDirection) ToScVal

func (e MessageDirection) ToScVal() (xdr.ScVal, error)

ToScVal converts MessageDirection to an xdr.ScVal.

type MintedEvent

type MintedEvent struct {
	Sender    string
	Recipient string
	Amount    int64
	// Event metadata
	Ledger uint32
	TxHash string
}

MintedEvent represents the MintedEvent event. Topics: [pool_Minted]

func ParseMintedEvent

func ParseMintedEvent(e protocolrpc.EventInfo) (*MintedEvent, error)

type OutboundRateLimitConsumedEvent

type OutboundRateLimitConsumedEvent struct {
	RemoteChainSelector uint64
	Amount              int64
	// Event metadata
	Ledger uint32
	TxHash string
}

OutboundRateLimitConsumedEvent represents the OutboundRateLimitConsumedEvent event. Topics: [pool_OutboundRateLimitConsumed]

type OwnershipTransferStartedEvent

type OwnershipTransferStartedEvent struct {
	PreviousOwner string
	NewOwner      string
	// Event metadata
	Ledger uint32
	TxHash string
}

OwnershipTransferStartedEvent represents the OwnershipTransferStartedEvent event. Topics: [auth_OwnerTransferStart]

type PoolDataKey

type PoolDataKey struct {
	Token                 *PoolDataKeyToken
	RemoteChainConfig     *PoolDataKeyRemoteChainConfig
	SupportedChains       *PoolDataKeySupportedChains
	TokenDecimals         *PoolDataKeyTokenDecimals
	OutboundRateLimit     *PoolDataKeyOutboundRateLimit
	InboundRateLimit      *PoolDataKeyInboundRateLimit
	RateLimitAdmin        *PoolDataKeyRateLimitAdmin
	FtfOutboundRateLimit  *PoolDataKeyFtfOutboundRateLimit
	FtfInboundRateLimit   *PoolDataKeyFtfInboundRateLimit
	AllowedFinalityConfig *PoolDataKeyAllowedFinalityConfig
	RampRegistry          *PoolDataKeyRampRegistry
	AdvancedPoolHooks     *PoolDataKeyAdvancedPoolHooks
	PoolFeeConfig         *PoolDataKeyPoolFeeConfig
	Router                *PoolDataKeyRouter
}

PoolDataKey is a Soroban discriminated-union (#[contracttype] enum with payload(s)). Wire format: ScVal::Vec([ScVal::Symbol(<VariantName>), <payload fields...>]). Construct by setting exactly one variant pointer to a non-nil value.

func PoolDataKeyFromScVal

func PoolDataKeyFromScVal(val xdr.ScVal) (PoolDataKey, error)

PoolDataKeyFromScVal parses an xdr.ScVal into PoolDataKey.

func (PoolDataKey) ToScVal

func (e PoolDataKey) ToScVal() (xdr.ScVal, error)

ToScVal converts PoolDataKey to its Soroban discriminated-union encoding. Returns an error if zero or multiple variant pointers are set.

type PoolDataKeyAdvancedPoolHooks

type PoolDataKeyAdvancedPoolHooks struct{}

PoolDataKeyAdvancedPoolHooks is the unit variant PoolDataKey::AdvancedPoolHooks.

type PoolDataKeyAllowedFinalityConfig

type PoolDataKeyAllowedFinalityConfig struct{}

PoolDataKeyAllowedFinalityConfig is the unit variant PoolDataKey::AllowedFinalityConfig.

type PoolDataKeyFtfInboundRateLimit

type PoolDataKeyFtfInboundRateLimit struct {
	Field0 uint64
}

PoolDataKeyFtfInboundRateLimit is the tuple variant PoolDataKey::FtfInboundRateLimit.

type PoolDataKeyFtfOutboundRateLimit

type PoolDataKeyFtfOutboundRateLimit struct {
	Field0 uint64
}

PoolDataKeyFtfOutboundRateLimit is the tuple variant PoolDataKey::FtfOutboundRateLimit.

type PoolDataKeyInboundRateLimit

type PoolDataKeyInboundRateLimit struct {
	Field0 uint64
}

PoolDataKeyInboundRateLimit is the tuple variant PoolDataKey::InboundRateLimit.

type PoolDataKeyOutboundRateLimit

type PoolDataKeyOutboundRateLimit struct {
	Field0 uint64
}

PoolDataKeyOutboundRateLimit is the tuple variant PoolDataKey::OutboundRateLimit.

type PoolDataKeyPoolFeeConfig

type PoolDataKeyPoolFeeConfig struct {
	Field0 uint64
}

PoolDataKeyPoolFeeConfig is the tuple variant PoolDataKey::PoolFeeConfig.

type PoolDataKeyRampRegistry

type PoolDataKeyRampRegistry struct{}

PoolDataKeyRampRegistry is the unit variant PoolDataKey::RampRegistry.

type PoolDataKeyRateLimitAdmin

type PoolDataKeyRateLimitAdmin struct{}

PoolDataKeyRateLimitAdmin is the unit variant PoolDataKey::RateLimitAdmin.

type PoolDataKeyRemoteChainConfig

type PoolDataKeyRemoteChainConfig struct {
	Field0 uint64
}

PoolDataKeyRemoteChainConfig is the tuple variant PoolDataKey::RemoteChainConfig.

type PoolDataKeyRouter

type PoolDataKeyRouter struct{}

PoolDataKeyRouter is the unit variant PoolDataKey::Router.

type PoolDataKeySupportedChains

type PoolDataKeySupportedChains struct{}

PoolDataKeySupportedChains is the unit variant PoolDataKey::SupportedChains.

type PoolDataKeyToken

type PoolDataKeyToken struct{}

PoolDataKeyToken is the unit variant PoolDataKey::Token.

type PoolDataKeyTokenDecimals

type PoolDataKeyTokenDecimals struct{}

PoolDataKeyTokenDecimals is the unit variant PoolDataKey::TokenDecimals.

type PoolFeeConfig

type PoolFeeConfig struct {
	FeeUsdCents uint32
	IsEnabled   bool
}

PoolFeeConfig represents the PoolFeeConfig struct from the contract.

func PoolFeeConfigFromScVal

func PoolFeeConfigFromScVal(val xdr.ScVal) (*PoolFeeConfig, error)

PoolFeeConfigFromScVal parses an xdr.ScVal into PoolFeeConfig.

func (PoolFeeConfig) ToScVal

func (s PoolFeeConfig) ToScVal() (xdr.ScVal, error)

ToScVal converts PoolFeeConfig to an xdr.ScVal for contract calls.

type PoolFeeResult

type PoolFeeResult struct {
	FeeUsdCents uint32
}

PoolFeeResult represents the PoolFeeResult struct from the contract.

func PoolFeeResultFromScVal

func PoolFeeResultFromScVal(val xdr.ScVal) (*PoolFeeResult, error)

PoolFeeResultFromScVal parses an xdr.ScVal into PoolFeeResult.

func (PoolFeeResult) ToScVal

func (s PoolFeeResult) ToScVal() (xdr.ScVal, error)

ToScVal converts PoolFeeResult to an xdr.ScVal for contract calls.

type PoolRequiredCCVs

type PoolRequiredCCVs struct {
	Ccvs            []string
	IncludeDefaults bool
}

PoolRequiredCCVs represents the PoolRequiredCCVs struct from the contract.

func PoolRequiredCCVsFromScVal

func PoolRequiredCCVsFromScVal(val xdr.ScVal) (*PoolRequiredCCVs, error)

PoolRequiredCCVsFromScVal parses an xdr.ScVal into PoolRequiredCCVs.

func (PoolRequiredCCVs) ToScVal

func (s PoolRequiredCCVs) ToScVal() (xdr.ScVal, error)

ToScVal converts PoolRequiredCCVs to an xdr.ScVal for contract calls.

type RateLimitConfig

type RateLimitConfig struct {
	Capacity  scval.U128
	IsEnabled bool
	Rate      scval.U128
}

RateLimitConfig represents the RateLimitConfig struct from the contract.

func RateLimitConfigFromScVal

func RateLimitConfigFromScVal(val xdr.ScVal) (*RateLimitConfig, error)

RateLimitConfigFromScVal parses an xdr.ScVal into RateLimitConfig.

func (RateLimitConfig) ToScVal

func (s RateLimitConfig) ToScVal() (xdr.ScVal, error)

ToScVal converts RateLimitConfig to an xdr.ScVal for contract calls.

type RateLimitConfiguredEvent

type RateLimitConfiguredEvent struct {
	RemoteChainSelector uint64
	FastFinality        bool
	OutboundConfig      RateLimitConfig
	InboundConfig       RateLimitConfig
	// Event metadata
	Ledger uint32
	TxHash string
}

RateLimitConfiguredEvent represents the RateLimitConfiguredEvent event. Topics: [pool_RateLimitConfigured]

func ParseRateLimitConfiguredEvent

func ParseRateLimitConfiguredEvent(e protocolrpc.EventInfo) (*RateLimitConfiguredEvent, error)

type RateLimiterState

type RateLimiterState struct {
	Inbound  TokenBucket
	Outbound TokenBucket
}

RateLimiterState represents the RateLimiterState struct from the contract.

func RateLimiterStateFromScVal

func RateLimiterStateFromScVal(val xdr.ScVal) (*RateLimiterState, error)

RateLimiterStateFromScVal parses an xdr.ScVal into RateLimiterState.

func (RateLimiterState) ToScVal

func (s RateLimiterState) ToScVal() (xdr.ScVal, error)

ToScVal converts RateLimiterState to an xdr.ScVal for contract calls.

type ReleaseOrMintIn

type ReleaseOrMintIn struct {
	Amount              int64
	LocalToken          string
	OriginalSender      []byte
	Receiver            string
	RemoteChainSelector uint64
	SourcePoolAddress   []byte
	SourcePoolData      []byte
}

ReleaseOrMintIn represents the ReleaseOrMintIn struct from the contract.

func ReleaseOrMintInFromScVal

func ReleaseOrMintInFromScVal(val xdr.ScVal) (*ReleaseOrMintIn, error)

ReleaseOrMintInFromScVal parses an xdr.ScVal into ReleaseOrMintIn.

func (ReleaseOrMintIn) ToScVal

func (s ReleaseOrMintIn) ToScVal() (xdr.ScVal, error)

ToScVal converts ReleaseOrMintIn to an xdr.ScVal for contract calls.

type ReleaseOrMintOut

type ReleaseOrMintOut struct {
	DestinationAmount int64
}

ReleaseOrMintOut represents the ReleaseOrMintOut struct from the contract.

func ReleaseOrMintOutFromScVal

func ReleaseOrMintOutFromScVal(val xdr.ScVal) (*ReleaseOrMintOut, error)

ReleaseOrMintOutFromScVal parses an xdr.ScVal into ReleaseOrMintOut.

func (ReleaseOrMintOut) ToScVal

func (s ReleaseOrMintOut) ToScVal() (xdr.ScVal, error)

ToScVal converts ReleaseOrMintOut to an xdr.ScVal for contract calls.

type ReleasedEvent

type ReleasedEvent struct {
	Sender    string
	Recipient string
	Amount    int64
	// Event metadata
	Ledger uint32
	TxHash string
}

ReleasedEvent represents the ReleasedEvent event. Topics: [pool_Released]

func ParseReleasedEvent

func ParseReleasedEvent(e protocolrpc.EventInfo) (*ReleasedEvent, error)

type RemoteChainConfig

type RemoteChainConfig struct {
	RemotePoolAddress  []byte
	RemoteTokenAddress []byte
}

RemoteChainConfig represents the RemoteChainConfig struct from the contract.

func RemoteChainConfigFromScVal

func RemoteChainConfigFromScVal(val xdr.ScVal) (*RemoteChainConfig, error)

RemoteChainConfigFromScVal parses an xdr.ScVal into RemoteChainConfig.

func (RemoteChainConfig) ToScVal

func (s RemoteChainConfig) ToScVal() (xdr.ScVal, error)

ToScVal converts RemoteChainConfig to an xdr.ScVal for contract calls.

type RoleGrantedEvent

type RoleGrantedEvent struct {
	Role    string
	Account string
	Sender  string
	// Event metadata
	Ledger uint32
	TxHash string
}

RoleGrantedEvent represents the RoleGrantedEvent event. Topics: [auth_RoleGranted]

func ParseRoleGrantedEvent

func ParseRoleGrantedEvent(e protocolrpc.EventInfo) (*RoleGrantedEvent, error)

type RoleRevokedEvent

type RoleRevokedEvent struct {
	Role    string
	Account string
	Sender  string
	// Event metadata
	Ledger uint32
	TxHash string
}

RoleRevokedEvent represents the RoleRevokedEvent event. Topics: [auth_RoleRevoked]

func ParseRoleRevokedEvent

func ParseRoleRevokedEvent(e protocolrpc.EventInfo) (*RoleRevokedEvent, error)

type StellarToAnyMessage

type StellarToAnyMessage struct {
	Data         []byte
	ExtraArgs    []byte
	FeeToken     string
	Receiver     []byte
	TokenAmounts []TokenAmount
}

StellarToAnyMessage represents the StellarToAnyMessage struct from the contract.

func StellarToAnyMessageFromScVal

func StellarToAnyMessageFromScVal(val xdr.ScVal) (*StellarToAnyMessage, error)

StellarToAnyMessageFromScVal parses an xdr.ScVal into StellarToAnyMessage.

func (StellarToAnyMessage) ToScVal

func (s StellarToAnyMessage) ToScVal() (xdr.ScVal, error)

ToScVal converts StellarToAnyMessage to an xdr.ScVal for contract calls.

type TokenAmount

type TokenAmount struct {
	Amount int64
	Token  string
}

TokenAmount represents the TokenAmount struct from the contract.

func TokenAmountFromScVal

func TokenAmountFromScVal(val xdr.ScVal) (*TokenAmount, error)

TokenAmountFromScVal parses an xdr.ScVal into TokenAmount.

func (TokenAmount) ToScVal

func (s TokenAmount) ToScVal() (xdr.ScVal, error)

ToScVal converts TokenAmount to an xdr.ScVal for contract calls.

type TokenBucket

type TokenBucket struct {
	Capacity    scval.U128
	IsEnabled   bool
	LastUpdated uint64
	Rate        scval.U128
	Tokens      scval.U128
}

TokenBucket represents the TokenBucket struct from the contract.

func TokenBucketFromScVal

func TokenBucketFromScVal(val xdr.ScVal) (*TokenBucket, error)

TokenBucketFromScVal parses an xdr.ScVal into TokenBucket.

func (TokenBucket) ToScVal

func (s TokenBucket) ToScVal() (xdr.ScVal, error)

ToScVal converts TokenBucket to an xdr.ScVal for contract calls.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL