Documentation
¶
Overview ¶
Code generated by stellar-bindings-generator. DO NOT EDIT.
Code generated by stellar-bindings-generator. DO NOT EDIT.
Index ¶
- Constants
- Variables
- type AllowListEntry
- type AllowListUpdate
- type AnyToStellarMessage
- type AuthorizedCallerAddedEvent
- type AuthorizedCallerRemovedEvent
- type Config
- type ConfigSetEvent
- type ExpiringRootAndOpCount
- type GenericExtraArgsV3
- type McmsClient
- func (c *McmsClient) AcceptOwnership(ctx context.Context) error
- func (c *McmsClient) CancelOwnershipTransfer(ctx context.Context) error
- func (c *McmsClient) ChainNetworkId(ctx context.Context) ([32]byte, error)
- func (c *McmsClient) ContractID() string
- func (c *McmsClient) Execute(ctx context.Context, op StellarOp, proof MerkleProof) error
- func (c *McmsClient) ExtendAllTtls(ctx context.Context) error
- func (c *McmsClient) GetConfig(ctx context.Context) (*Config, error)
- func (c *McmsClient) GetMinSecsPerLedger(ctx context.Context) (uint64, error)
- func (c *McmsClient) GetOpCount(ctx context.Context) (uint64, error)
- func (c *McmsClient) GetPendingOwner(ctx context.Context) (*string, error)
- func (c *McmsClient) GetRoot(ctx context.Context) ([32]byte, uint32, error)
- func (c *McmsClient) GetRootMetadata(ctx context.Context) (*StellarRootMetadata, error)
- func (c *McmsClient) InitOwner(ctx context.Context, owner string) error
- func (c *McmsClient) Initialize(ctx context.Context, owner string, chainNetworkId [32]byte) error
- func (c *McmsClient) IsOwner(ctx context.Context, addr string) (bool, error)
- func (c *McmsClient) Owner(ctx context.Context) (*string, error)
- func (c *McmsClient) RequireOwner(ctx context.Context) (string, error)
- func (c *McmsClient) SetConfig(ctx context.Context, signerAddresses SignerAddresses, ...) error
- func (c *McmsClient) SetMinSecsPerLedger(ctx context.Context, secs uint64) error
- func (c *McmsClient) SetNewOwner(ctx context.Context, newOwner string) error
- func (c *McmsClient) SetRoot(ctx context.Context, root [32]byte, validUntil uint32, ...) error
- func (c *McmsClient) TransferOwnership(ctx context.Context, newOwner string) error
- func (c *McmsClient) WaitForAuthorizedCallerAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*AuthorizedCallerAddedEvent, error)
- func (c *McmsClient) WaitForAuthorizedCallerRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*AuthorizedCallerRemovedEvent, error)
- func (c *McmsClient) WaitForConfigSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*ConfigSetEvent, error)
- func (c *McmsClient) WaitForMinSecsPerLedgerSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*MinSecsPerLedgerSetEvent, error)
- func (c *McmsClient) WaitForNewRootEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*NewRootEvent, error)
- func (c *McmsClient) WaitForOpExecutedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*OpExecutedEvent, error)
- func (c *McmsClient) WaitForOwnershipTransferStartedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*OwnershipTransferStartedEvent, error)
- func (c *McmsClient) WaitForRoleGrantedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*RoleGrantedEvent, error)
- func (c *McmsClient) WaitForRoleRevokedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*RoleRevokedEvent, error)
- type MerkleProof
- type MinSecsPerLedgerSetEvent
- type NewRootEvent
- type OpExecutedEvent
- type OwnershipTransferStartedEvent
- type RoleGrantedEvent
- type RoleRevokedEvent
- type Signature
- type SignatureVec
- type Signer
- type SignerAddresses
- type SignerGroups
- type StellarOp
- type StellarRootMetadata
- type StellarToAnyMessage
- type TokenAmount
Constants ¶
const ( CCIPErrorNotInitialized = 1 CCIPErrorAlreadyInitialized = 2 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.
const ( McmsErrorNotInitialized = 1 McmsErrorAlreadyInitialized = 2 McmsErrorNotOwner = 3 McmsErrorOutOfBoundsNumOfSigners = 10 McmsErrorSignerGroupsLengthMismatch = 11 McmsErrorOutOfBoundsGroup = 12 McmsErrorGroupTreeNotWellFormed = 13 McmsErrorOutOfBoundsGroupQuorum = 14 McmsErrorSignerInDisabledGroup = 15 McmsErrorSignersAddressesMustBeStrictlyIncreasing = 16 McmsErrorSignedHashAlreadySeen = 20 McmsErrorSignersAddressesMustBeStrictlyIncreasingSigs = 21 McmsErrorInvalidSigner = 22 McmsErrorMissingConfig = 23 McmsErrorInsufficientSigners = 24 McmsErrorValidUntilHasAlreadyPassed = 25 McmsErrorProofCannotBeVerified = 26 McmsErrorWrongChainIdMeta = 27 McmsErrorWrongMultiSigMeta = 28 McmsErrorPendingOps = 29 McmsErrorWrongPreOpCount = 30 McmsErrorWrongPostOpCount = 31 McmsErrorPostOpCountReached = 40 McmsErrorWrongChainIdOp = 41 McmsErrorWrongMultiSigOp = 42 McmsErrorRootExpired = 43 McmsErrorWrongNonce = 44 McmsErrorCallReverted = 45 McmsErrorInvalidSignature = 46 McmsErrorInvalidSignatureEncoding = 47 McmsErrorNonceOverflow = 48 McmsErrorInvalidUint40 = 49 McmsErrorInvalidInvokeData = 50 McmsErrorNonZeroValue = 51 McmsErrorMissingRootMetadata = 52 McmsErrorValidUntilExceedsMaximum = 53 McmsErrorInvalidMinSecsPerLedger = 54 )
McmsError represents the contract error codes.
const AuthorizedCallerAddedEventTopic = "auth_CallerAdded"
AuthorizedCallerAddedEventTopic is the event topic identifier.
const AuthorizedCallerRemovedEventTopic = "auth_CallerRemoved"
AuthorizedCallerRemovedEventTopic is the event topic identifier.
const ConfigSetEventTopic = "mcms_ConfigSet"
ConfigSetEventTopic is the event topic identifier.
const MinSecsPerLedgerSetEventTopic = "mcms_MinSecsPerLedgerSet"
MinSecsPerLedgerSetEventTopic is the event topic identifier.
const NewRootEventTopic = "mcms_NewRoot"
NewRootEventTopic is the event topic identifier.
const OpExecutedEventTopic = "mcms_OpExecuted"
OpExecutedEventTopic is the event topic identifier.
const OwnershipTransferStartedEventTopic = "auth_OwnerTransferStart"
OwnershipTransferStartedEventTopic is the event topic identifier.
const RoleGrantedEventTopic = "auth_RoleGranted"
RoleGrantedEventTopic is the event topic identifier.
const RoleRevokedEventTopic = "auth_RoleRevoked"
RoleRevokedEventTopic is the event topic identifier.
Variables ¶
var CCIPErrorMessage = map[int]string{}/* 116 elements not displayed */
CCIPErrorMessage returns a human-readable message for error codes.
var McmsErrorMessage = map[int]string{
1: "not initialized",
2: "already initialized",
3: "not owner",
10: "out of bounds num of signers",
11: "signer groups length mismatch",
12: "out of bounds group",
13: "group tree not well formed",
14: "out of bounds group quorum",
15: "signer in disabled group",
16: "signers addresses must be strictly increasing",
20: "signed hash already seen",
21: "signers addresses must be strictly increasing sigs",
22: "invalid signer",
23: "missing config",
24: "insufficient signers",
25: "valid until has already passed",
26: "proof cannot be verified",
27: "wrong chain id meta",
28: "wrong multi sig meta",
29: "pending ops",
30: "wrong pre op count",
31: "wrong post op count",
40: "post op count reached",
41: "wrong chain id op",
42: "wrong multi sig op",
43: "root expired",
44: "wrong nonce",
45: "call reverted",
46: "invalid signature",
47: "invalid signature encoding",
48: "nonce overflow",
49: "invalid uint40",
50: "invalid invoke data",
51: "non zero value",
52: "missing root metadata",
53: "valid until exceeds maximum",
54: "invalid min secs per ledger",
}
McmsErrorMessage returns a human-readable message for error codes.
Functions ¶
This section is empty.
Types ¶
type AllowListEntry ¶
AllowListEntry represents the AllowListEntry struct from the contract.
func AllowListEntryFromScVal ¶
func AllowListEntryFromScVal(val xdr.ScVal) (*AllowListEntry, error)
AllowListEntryFromScVal parses an xdr.ScVal into AllowListEntry.
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.
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.
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]
func ParseAuthorizedCallerRemovedEvent ¶
func ParseAuthorizedCallerRemovedEvent(e protocolrpc.EventInfo) (*AuthorizedCallerRemovedEvent, error)
type Config ¶
Config represents the Config struct from the contract.
func ConfigFromScVal ¶
ConfigFromScVal parses an xdr.ScVal into Config.
type ConfigSetEvent ¶
type ConfigSetEvent struct {
Config Config
IsRootCleared bool
// Event metadata
Ledger uint32
TxHash string
}
ConfigSetEvent represents the ConfigSetEvent event. Topics: [mcms_ConfigSet]
func ParseConfigSetEvent ¶
func ParseConfigSetEvent(e protocolrpc.EventInfo) (*ConfigSetEvent, error)
type ExpiringRootAndOpCount ¶
ExpiringRootAndOpCount represents the ExpiringRootAndOpCount struct from the contract.
func ExpiringRootAndOpCountFromScVal ¶
func ExpiringRootAndOpCountFromScVal(val xdr.ScVal) (*ExpiringRootAndOpCount, error)
ExpiringRootAndOpCountFromScVal parses an xdr.ScVal into ExpiringRootAndOpCount.
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.
type McmsClient ¶
type McmsClient struct {
// contains filtered or unexported fields
}
McmsClient provides methods to interact with the Mcms contract.
func NewMcmsClient ¶
func NewMcmsClient(invoker bindings.Invoker, contractID string) *McmsClient
NewMcmsClient creates a new McmsClient.
func (*McmsClient) AcceptOwnership ¶
func (c *McmsClient) AcceptOwnership(ctx context.Context) error
AcceptOwnership calls the accept_ownership function on the contract.
func (*McmsClient) CancelOwnershipTransfer ¶
func (c *McmsClient) CancelOwnershipTransfer(ctx context.Context) error
CancelOwnershipTransfer calls the cancel_ownership_transfer function on the contract.
func (*McmsClient) ChainNetworkId ¶
func (c *McmsClient) ChainNetworkId(ctx context.Context) ([32]byte, error)
ChainNetworkId calls the chain_network_id function on the contract.
func (*McmsClient) ContractID ¶
func (c *McmsClient) ContractID() string
ContractID returns the contract ID.
func (*McmsClient) Execute ¶
func (c *McmsClient) Execute(ctx context.Context, op StellarOp, proof MerkleProof) error
Execute calls the execute function on the contract.
func (*McmsClient) ExtendAllTtls ¶
func (c *McmsClient) ExtendAllTtls(ctx context.Context) error
ExtendAllTtls calls the extend_all_ttls function on the contract.
func (*McmsClient) GetConfig ¶
func (c *McmsClient) GetConfig(ctx context.Context) (*Config, error)
GetConfig calls the get_config function on the contract.
func (*McmsClient) GetMinSecsPerLedger ¶
func (c *McmsClient) GetMinSecsPerLedger(ctx context.Context) (uint64, error)
GetMinSecsPerLedger calls the get_min_secs_per_ledger function on the contract.
func (*McmsClient) GetOpCount ¶
func (c *McmsClient) GetOpCount(ctx context.Context) (uint64, error)
GetOpCount calls the get_op_count function on the contract.
func (*McmsClient) GetPendingOwner ¶
func (c *McmsClient) GetPendingOwner(ctx context.Context) (*string, error)
GetPendingOwner calls the get_pending_owner function on the contract.
func (*McmsClient) GetRootMetadata ¶
func (c *McmsClient) GetRootMetadata(ctx context.Context) (*StellarRootMetadata, error)
GetRootMetadata calls the get_root_metadata function on the contract.
func (*McmsClient) InitOwner ¶
func (c *McmsClient) InitOwner(ctx context.Context, owner string) error
InitOwner calls the init_owner function on the contract.
func (*McmsClient) Initialize ¶
Initialize calls the initialize function on the contract.
func (*McmsClient) Owner ¶
func (c *McmsClient) Owner(ctx context.Context) (*string, error)
Owner calls the owner function on the contract.
func (*McmsClient) RequireOwner ¶
func (c *McmsClient) RequireOwner(ctx context.Context) (string, error)
RequireOwner calls the require_owner function on the contract.
func (*McmsClient) SetConfig ¶
func (c *McmsClient) SetConfig(ctx context.Context, signerAddresses SignerAddresses, signerGroups SignerGroups, groupQuorums [32]byte, groupParents [32]byte, clearRoot bool) error
SetConfig calls the set_config function on the contract.
func (*McmsClient) SetMinSecsPerLedger ¶
func (c *McmsClient) SetMinSecsPerLedger(ctx context.Context, secs uint64) error
SetMinSecsPerLedger calls the set_min_secs_per_ledger function on the contract.
func (*McmsClient) SetNewOwner ¶
func (c *McmsClient) SetNewOwner(ctx context.Context, newOwner string) error
SetNewOwner calls the set_new_owner function on the contract.
func (*McmsClient) SetRoot ¶
func (c *McmsClient) SetRoot(ctx context.Context, root [32]byte, validUntil uint32, metadata StellarRootMetadata, metadataProof MerkleProof, signatures SignatureVec) error
SetRoot calls the set_root function on the contract.
func (*McmsClient) TransferOwnership ¶
func (c *McmsClient) TransferOwnership(ctx context.Context, newOwner string) error
TransferOwnership calls the transfer_ownership function on the contract.
func (*McmsClient) WaitForAuthorizedCallerAddedEvent ¶
func (c *McmsClient) WaitForAuthorizedCallerAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerAddedEvent) bool) (*AuthorizedCallerAddedEvent, error)
WaitForAuthorizedCallerAddedEvent waits for a AuthorizedCallerAddedEvent event.
func (*McmsClient) WaitForAuthorizedCallerRemovedEvent ¶
func (c *McmsClient) WaitForAuthorizedCallerRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerRemovedEvent) bool) (*AuthorizedCallerRemovedEvent, error)
WaitForAuthorizedCallerRemovedEvent waits for a AuthorizedCallerRemovedEvent event.
func (*McmsClient) WaitForConfigSetEvent ¶
func (c *McmsClient) WaitForConfigSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*ConfigSetEvent) bool) (*ConfigSetEvent, error)
WaitForConfigSetEvent waits for a ConfigSetEvent event.
func (*McmsClient) WaitForMinSecsPerLedgerSetEvent ¶
func (c *McmsClient) WaitForMinSecsPerLedgerSetEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*MinSecsPerLedgerSetEvent) bool) (*MinSecsPerLedgerSetEvent, error)
WaitForMinSecsPerLedgerSetEvent waits for a MinSecsPerLedgerSetEvent event.
func (*McmsClient) WaitForNewRootEvent ¶
func (c *McmsClient) WaitForNewRootEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*NewRootEvent) bool) (*NewRootEvent, error)
WaitForNewRootEvent waits for a NewRootEvent event.
func (*McmsClient) WaitForOpExecutedEvent ¶
func (c *McmsClient) WaitForOpExecutedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*OpExecutedEvent) bool) (*OpExecutedEvent, error)
WaitForOpExecutedEvent waits for a OpExecutedEvent event.
func (*McmsClient) WaitForOwnershipTransferStartedEvent ¶
func (c *McmsClient) WaitForOwnershipTransferStartedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*OwnershipTransferStartedEvent) bool) (*OwnershipTransferStartedEvent, error)
WaitForOwnershipTransferStartedEvent waits for a OwnershipTransferStartedEvent event.
func (*McmsClient) WaitForRoleGrantedEvent ¶
func (c *McmsClient) WaitForRoleGrantedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleGrantedEvent) bool) (*RoleGrantedEvent, error)
WaitForRoleGrantedEvent waits for a RoleGrantedEvent event.
func (*McmsClient) WaitForRoleRevokedEvent ¶
func (c *McmsClient) WaitForRoleRevokedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleRevokedEvent) bool) (*RoleRevokedEvent, error)
WaitForRoleRevokedEvent waits for a RoleRevokedEvent event.
type MerkleProof ¶
type MerkleProof struct {
Inner [][32]byte
}
MerkleProof represents the MerkleProof struct from the contract.
func MerkleProofFromScVal ¶
func MerkleProofFromScVal(val xdr.ScVal) (*MerkleProof, error)
MerkleProofFromScVal parses an xdr.ScVal into MerkleProof.
type MinSecsPerLedgerSetEvent ¶
type MinSecsPerLedgerSetEvent struct {
MinSecsPerLedger uint64
// Event metadata
Ledger uint32
TxHash string
}
MinSecsPerLedgerSetEvent represents the MinSecsPerLedgerSetEvent event. Topics: [mcms_MinSecsPerLedgerSet]
func ParseMinSecsPerLedgerSetEvent ¶
func ParseMinSecsPerLedgerSetEvent(e protocolrpc.EventInfo) (*MinSecsPerLedgerSetEvent, error)
type NewRootEvent ¶
type NewRootEvent struct {
Root [32]byte
ValidUntil uint32
Metadata StellarRootMetadata
// Event metadata
Ledger uint32
TxHash string
}
NewRootEvent represents the NewRootEvent event. Topics: [mcms_NewRoot]
func ParseNewRootEvent ¶
func ParseNewRootEvent(e protocolrpc.EventInfo) (*NewRootEvent, error)
type OpExecutedEvent ¶
type OpExecutedEvent struct {
Nonce uint64
To [32]byte
Data []byte
Value [32]byte
// Event metadata
Ledger uint32
TxHash string
}
OpExecutedEvent represents the OpExecutedEvent event. Topics: [mcms_OpExecuted]
func ParseOpExecutedEvent ¶
func ParseOpExecutedEvent(e protocolrpc.EventInfo) (*OpExecutedEvent, error)
type OwnershipTransferStartedEvent ¶
type OwnershipTransferStartedEvent struct {
PreviousOwner string
NewOwner string
// Event metadata
Ledger uint32
TxHash string
}
OwnershipTransferStartedEvent represents the OwnershipTransferStartedEvent event. Topics: [auth_OwnerTransferStart]
func ParseOwnershipTransferStartedEvent ¶
func ParseOwnershipTransferStartedEvent(e protocolrpc.EventInfo) (*OwnershipTransferStartedEvent, error)
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 Signature ¶
Signature represents the Signature struct from the contract.
func SignatureFromScVal ¶
SignatureFromScVal parses an xdr.ScVal into Signature.
type SignatureVec ¶
type SignatureVec struct {
Inner []Signature
}
SignatureVec represents the SignatureVec struct from the contract.
func SignatureVecFromScVal ¶
func SignatureVecFromScVal(val xdr.ScVal) (*SignatureVec, error)
SignatureVecFromScVal parses an xdr.ScVal into SignatureVec.
type Signer ¶
Signer represents the Signer struct from the contract.
func SignerFromScVal ¶
SignerFromScVal parses an xdr.ScVal into Signer.
type SignerAddresses ¶
type SignerAddresses struct {
Inner [][32]byte
}
SignerAddresses represents the SignerAddresses struct from the contract.
func SignerAddressesFromScVal ¶
func SignerAddressesFromScVal(val xdr.ScVal) (*SignerAddresses, error)
SignerAddressesFromScVal parses an xdr.ScVal into SignerAddresses.
type SignerGroups ¶
type SignerGroups struct {
Inner []uint32
}
SignerGroups represents the SignerGroups struct from the contract.
func SignerGroupsFromScVal ¶
func SignerGroupsFromScVal(val xdr.ScVal) (*SignerGroups, error)
SignerGroupsFromScVal parses an xdr.ScVal into SignerGroups.
type StellarOp ¶
type StellarOp struct {
ChainId [32]byte
Data []byte
Multisig [32]byte
Nonce uint64
To [32]byte
Value [32]byte
}
StellarOp represents the StellarOp struct from the contract.
func StellarOpFromScVal ¶
StellarOpFromScVal parses an xdr.ScVal into StellarOp.
type StellarRootMetadata ¶
type StellarRootMetadata struct {
ChainId [32]byte
Multisig [32]byte
OverridePreviousRoot bool
PostOpCount uint64
PreOpCount uint64
}
StellarRootMetadata represents the StellarRootMetadata struct from the contract.
func StellarRootMetadataFromScVal ¶
func StellarRootMetadataFromScVal(val xdr.ScVal) (*StellarRootMetadata, error)
StellarRootMetadataFromScVal parses an xdr.ScVal into StellarRootMetadata.
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.
type TokenAmount ¶
TokenAmount represents the TokenAmount struct from the contract.
func TokenAmountFromScVal ¶
func TokenAmountFromScVal(val xdr.ScVal) (*TokenAmount, error)
TokenAmountFromScVal parses an xdr.ScVal into TokenAmount.