Documentation
¶
Overview ¶
Code generated by stellar-bindings-generator. DO NOT EDIT.
Code generated by stellar-bindings-generator. DO NOT EDIT.
Index ¶
- Constants
- Variables
- type ApproveEvent
- type AuthorizedCallerAddedEvent
- type AuthorizedCallerRemovedEvent
- type BurnEvent
- type LinkTokenClient
- func (c *LinkTokenClient) AcceptOwnership(ctx context.Context) error
- func (c *LinkTokenClient) AddMinter(ctx context.Context, minter string) error
- func (c *LinkTokenClient) Admin(ctx context.Context) (string, error)
- func (c *LinkTokenClient) Allowance(ctx context.Context, from string, spender string) (*big.Int, error)
- func (c *LinkTokenClient) Approve(ctx context.Context, from string, spender string, amount *big.Int, ...) error
- func (c *LinkTokenClient) Authorized(ctx context.Context, id string) (bool, error)
- func (c *LinkTokenClient) Balance(ctx context.Context, id string) (*big.Int, error)
- func (c *LinkTokenClient) Burn(ctx context.Context, from string, amount *big.Int) error
- func (c *LinkTokenClient) BurnFrom(ctx context.Context, spender string, from string, amount *big.Int) error
- func (c *LinkTokenClient) CancelOwnershipTransfer(ctx context.Context) error
- func (c *LinkTokenClient) Clawback(ctx context.Context, from string, amount *big.Int) error
- func (c *LinkTokenClient) ContractID() string
- func (c *LinkTokenClient) Decimals(ctx context.Context) (uint32, error)
- func (c *LinkTokenClient) GetMinters(ctx context.Context) ([]string, error)
- func (c *LinkTokenClient) GetPendingOwner(ctx context.Context) (*string, error)
- func (c *LinkTokenClient) InitOwner(ctx context.Context, owner string) error
- func (c *LinkTokenClient) Initialize(ctx context.Context, admin string, name string, symbol string, decimals uint32) error
- func (c *LinkTokenClient) IsOwner(ctx context.Context, addr string) (bool, error)
- func (c *LinkTokenClient) Mint(ctx context.Context, to string, amount *big.Int) error
- func (c *LinkTokenClient) MintAs(ctx context.Context, caller string, to string, amount *big.Int) error
- func (c *LinkTokenClient) Name(ctx context.Context) (string, error)
- func (c *LinkTokenClient) Owner(ctx context.Context) (*string, error)
- func (c *LinkTokenClient) RemoveMinter(ctx context.Context, minter string) error
- func (c *LinkTokenClient) RequireOwner(ctx context.Context) (string, error)
- func (c *LinkTokenClient) SetAdmin(ctx context.Context, newAdmin string) error
- func (c *LinkTokenClient) SetAuthorized(ctx context.Context, id string, authorize bool) error
- func (c *LinkTokenClient) Symbol(ctx context.Context) (string, error)
- func (c *LinkTokenClient) Transfer(ctx context.Context, from string, to string, amount *big.Int) error
- func (c *LinkTokenClient) TransferFrom(ctx context.Context, spender string, from string, to string, amount *big.Int) error
- func (c *LinkTokenClient) TransferOwnership(ctx context.Context, newOwner string) error
- func (c *LinkTokenClient) Trust(ctx context.Context, addr string) error
- func (c *LinkTokenClient) TypeAndVersion(ctx context.Context) (string, error)
- func (c *LinkTokenClient) WaitForApproveEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*ApproveEvent, error)
- func (c *LinkTokenClient) WaitForAuthorizedCallerAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*AuthorizedCallerAddedEvent, error)
- func (c *LinkTokenClient) WaitForAuthorizedCallerRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*AuthorizedCallerRemovedEvent, error)
- func (c *LinkTokenClient) WaitForBurnEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*BurnEvent, error)
- func (c *LinkTokenClient) WaitForMintEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*MintEvent, error)
- func (c *LinkTokenClient) WaitForOwnershipTransferStartedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*OwnershipTransferStartedEvent, error)
- func (c *LinkTokenClient) WaitForRoleGrantedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*RoleGrantedEvent, error)
- func (c *LinkTokenClient) WaitForRoleRevokedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*RoleRevokedEvent, error)
- func (c *LinkTokenClient) WaitForSetAdminEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*SetAdminEvent, error)
- func (c *LinkTokenClient) WaitForSetAuthorizedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*SetAuthorizedEvent, error)
- func (c *LinkTokenClient) WaitForTransferEvent(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*TransferEvent, error)
- func (c *LinkTokenClient) WaitForUpgraded(ctx context.Context, startLedger uint32, timeout time.Duration, ...) (*Upgraded, error)
- type MintEvent
- type OwnershipTransferStartedEvent
- type RoleGrantedEvent
- type RoleRevokedEvent
- type SetAdminEvent
- type SetAuthorizedEvent
- type TransferEvent
- type Upgraded
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 CCIPErrorInvalidOptionalThreshold = 117 CCIPErrorOptionalCCVQuorumNotReached = 118 CCIPErrorNoStateProgressMade = 119 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 CCIPErrorInvalidSourcePoolAddress = 319 CCIPErrorDuplicateCCVNotAllowed = 320 CCIPErrorInvalidTokenTransferFeeConfig = 321 CCIPErrorInvalidTransferFeeBps = 322 CCIPErrorInvalidFeeCalculation = 801 CCIPErrorInvalidFeeTokenConversion = 802 CCIPErrorZeroFeeAggregatorNotAllowed = 803 CCIPErrorExceedsMaxCCVs = 804 CCIPErrorCCVNotAllowed = 805 CCIPErrorPolicyEngineDetachReverted = 806 CCIPErrorUnsupportedSelector = 807 CCIPErrorZeroAddressNotAllowed = 808 )
CCIPError represents the contract error codes.
const ( LinkErrorAlreadyInitialized = 1 LinkErrorNotAdmin = 2 LinkErrorInsufficientBalance = 3 LinkErrorInsufficientAllowance = 4 LinkErrorNegativeAmount = 5 LinkErrorNotInitialized = 6 LinkErrorUnsupportedOperation = 7 LinkErrorNotMinter = 8 LinkErrorMinterAlreadyExists = 9 LinkErrorMinterNotFound = 10 LinkErrorCannotRemovePrimaryMinter = 11 )
LinkError represents the contract error codes.
const ApproveEventTopic = "approve"
ApproveEventTopic is the event topic identifier.
const AuthorizedCallerAddedEventTopic = "auth_CallerAdded"
AuthorizedCallerAddedEventTopic is the event topic identifier.
const AuthorizedCallerRemovedEventTopic = "auth_CallerRemoved"
AuthorizedCallerRemovedEventTopic is the event topic identifier.
const BurnEventTopic = "burn"
BurnEventTopic is the event topic identifier.
const MintEventTopic = "mint"
MintEventTopic 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.
const SetAdminEventTopic = "set_admin"
SetAdminEventTopic is the event topic identifier.
const SetAuthorizedEventTopic = "set_authorized"
SetAuthorizedEventTopic is the event topic identifier.
const TransferEventTopic = "transfer"
TransferEventTopic is the event topic identifier.
const UpgradedTopic = "Upgraded"
UpgradedTopic is the event topic identifier.
Variables ¶
var CCIPErrorMessage = map[int]string{}/* 128 elements not displayed */
CCIPErrorMessage returns a human-readable message for error codes.
var LinkErrorMessage = map[int]string{
1: "already initialized",
2: "not admin",
3: "insufficient balance",
4: "insufficient allowance",
5: "negative amount",
6: "not initialized",
7: "unsupported operation",
8: "not minter",
9: "minter already exists",
10: "minter not found",
11: "cannot remove primary minter",
}
LinkErrorMessage returns a human-readable message for error codes.
Functions ¶
This section is empty.
Types ¶
type ApproveEvent ¶
type ApproveEvent struct {
From string
Spender string
Amount *big.Int
ExpirationLedger uint32
// Event metadata
Ledger uint32
TxHash string
}
ApproveEvent represents the ApproveEvent event. Topics: [approve]
func ParseApproveEvent ¶
func ParseApproveEvent(e protocolrpc.EventInfo) (*ApproveEvent, error)
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 BurnEvent ¶
BurnEvent represents the BurnEvent event. Topics: [burn]
func ParseBurnEvent ¶
func ParseBurnEvent(e protocolrpc.EventInfo) (*BurnEvent, error)
type LinkTokenClient ¶
type LinkTokenClient struct {
// contains filtered or unexported fields
}
LinkTokenClient provides methods to interact with the LinkToken contract.
func NewLinkTokenClient ¶
func NewLinkTokenClient(invoker bindings.Invoker, contractID string) *LinkTokenClient
NewLinkTokenClient creates a new LinkTokenClient.
func (*LinkTokenClient) AcceptOwnership ¶
func (c *LinkTokenClient) AcceptOwnership(ctx context.Context) error
AcceptOwnership calls the accept_ownership function on the contract.
func (*LinkTokenClient) AddMinter ¶
func (c *LinkTokenClient) AddMinter(ctx context.Context, minter string) error
AddMinter calls the add_minter function on the contract.
func (*LinkTokenClient) Admin ¶
func (c *LinkTokenClient) Admin(ctx context.Context) (string, error)
Admin calls the admin function on the contract.
func (*LinkTokenClient) Allowance ¶
func (c *LinkTokenClient) Allowance(ctx context.Context, from string, spender string) (*big.Int, error)
Allowance calls the allowance function on the contract.
func (*LinkTokenClient) Approve ¶
func (c *LinkTokenClient) Approve(ctx context.Context, from string, spender string, amount *big.Int, expirationLedger uint32) error
Approve calls the approve function on the contract.
func (*LinkTokenClient) Authorized ¶
Authorized calls the authorized function on the contract.
func (*LinkTokenClient) BurnFrom ¶
func (c *LinkTokenClient) BurnFrom(ctx context.Context, spender string, from string, amount *big.Int) error
BurnFrom calls the burn_from function on the contract.
func (*LinkTokenClient) CancelOwnershipTransfer ¶
func (c *LinkTokenClient) CancelOwnershipTransfer(ctx context.Context) error
CancelOwnershipTransfer calls the cancel_ownership_transfer function on the contract.
func (*LinkTokenClient) ContractID ¶
func (c *LinkTokenClient) ContractID() string
ContractID returns the contract ID.
func (*LinkTokenClient) Decimals ¶
func (c *LinkTokenClient) Decimals(ctx context.Context) (uint32, error)
Decimals calls the decimals function on the contract.
func (*LinkTokenClient) GetMinters ¶
func (c *LinkTokenClient) GetMinters(ctx context.Context) ([]string, error)
GetMinters calls the get_minters function on the contract.
func (*LinkTokenClient) GetPendingOwner ¶
func (c *LinkTokenClient) GetPendingOwner(ctx context.Context) (*string, error)
GetPendingOwner calls the get_pending_owner function on the contract.
func (*LinkTokenClient) InitOwner ¶
func (c *LinkTokenClient) InitOwner(ctx context.Context, owner string) error
InitOwner calls the init_owner function on the contract.
func (*LinkTokenClient) Initialize ¶
func (c *LinkTokenClient) Initialize(ctx context.Context, admin string, name string, symbol string, decimals uint32) error
Initialize calls the initialize function on the contract.
func (*LinkTokenClient) MintAs ¶
func (c *LinkTokenClient) MintAs(ctx context.Context, caller string, to string, amount *big.Int) error
MintAs calls the mint_as function on the contract.
func (*LinkTokenClient) Name ¶
func (c *LinkTokenClient) Name(ctx context.Context) (string, error)
Name calls the name function on the contract.
func (*LinkTokenClient) Owner ¶
func (c *LinkTokenClient) Owner(ctx context.Context) (*string, error)
Owner calls the owner function on the contract.
func (*LinkTokenClient) RemoveMinter ¶
func (c *LinkTokenClient) RemoveMinter(ctx context.Context, minter string) error
RemoveMinter calls the remove_minter function on the contract.
func (*LinkTokenClient) RequireOwner ¶
func (c *LinkTokenClient) RequireOwner(ctx context.Context) (string, error)
RequireOwner calls the require_owner function on the contract.
func (*LinkTokenClient) SetAdmin ¶
func (c *LinkTokenClient) SetAdmin(ctx context.Context, newAdmin string) error
SetAdmin calls the set_admin function on the contract.
func (*LinkTokenClient) SetAuthorized ¶
SetAuthorized calls the set_authorized function on the contract.
func (*LinkTokenClient) Symbol ¶
func (c *LinkTokenClient) Symbol(ctx context.Context) (string, error)
Symbol calls the symbol function on the contract.
func (*LinkTokenClient) Transfer ¶
func (c *LinkTokenClient) Transfer(ctx context.Context, from string, to string, amount *big.Int) error
Transfer calls the transfer function on the contract.
func (*LinkTokenClient) TransferFrom ¶
func (c *LinkTokenClient) TransferFrom(ctx context.Context, spender string, from string, to string, amount *big.Int) error
TransferFrom calls the transfer_from function on the contract.
func (*LinkTokenClient) TransferOwnership ¶
func (c *LinkTokenClient) TransferOwnership(ctx context.Context, newOwner string) error
TransferOwnership calls the transfer_ownership function on the contract.
func (*LinkTokenClient) Trust ¶
func (c *LinkTokenClient) Trust(ctx context.Context, addr string) error
Trust calls the trust function on the contract.
func (*LinkTokenClient) TypeAndVersion ¶
func (c *LinkTokenClient) TypeAndVersion(ctx context.Context) (string, error)
TypeAndVersion calls the type_and_version function on the contract.
func (*LinkTokenClient) WaitForApproveEvent ¶
func (c *LinkTokenClient) WaitForApproveEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*ApproveEvent) bool) (*ApproveEvent, error)
WaitForApproveEvent waits for a ApproveEvent event.
func (*LinkTokenClient) WaitForAuthorizedCallerAddedEvent ¶
func (c *LinkTokenClient) WaitForAuthorizedCallerAddedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerAddedEvent) bool) (*AuthorizedCallerAddedEvent, error)
WaitForAuthorizedCallerAddedEvent waits for a AuthorizedCallerAddedEvent event.
func (*LinkTokenClient) WaitForAuthorizedCallerRemovedEvent ¶
func (c *LinkTokenClient) WaitForAuthorizedCallerRemovedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*AuthorizedCallerRemovedEvent) bool) (*AuthorizedCallerRemovedEvent, error)
WaitForAuthorizedCallerRemovedEvent waits for a AuthorizedCallerRemovedEvent event.
func (*LinkTokenClient) WaitForBurnEvent ¶
func (c *LinkTokenClient) WaitForBurnEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*BurnEvent) bool) (*BurnEvent, error)
WaitForBurnEvent waits for a BurnEvent event.
func (*LinkTokenClient) WaitForMintEvent ¶
func (c *LinkTokenClient) WaitForMintEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*MintEvent) bool) (*MintEvent, error)
WaitForMintEvent waits for a MintEvent event.
func (*LinkTokenClient) WaitForOwnershipTransferStartedEvent ¶
func (c *LinkTokenClient) WaitForOwnershipTransferStartedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*OwnershipTransferStartedEvent) bool) (*OwnershipTransferStartedEvent, error)
WaitForOwnershipTransferStartedEvent waits for a OwnershipTransferStartedEvent event.
func (*LinkTokenClient) WaitForRoleGrantedEvent ¶
func (c *LinkTokenClient) WaitForRoleGrantedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleGrantedEvent) bool) (*RoleGrantedEvent, error)
WaitForRoleGrantedEvent waits for a RoleGrantedEvent event.
func (*LinkTokenClient) WaitForRoleRevokedEvent ¶
func (c *LinkTokenClient) WaitForRoleRevokedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*RoleRevokedEvent) bool) (*RoleRevokedEvent, error)
WaitForRoleRevokedEvent waits for a RoleRevokedEvent event.
func (*LinkTokenClient) WaitForSetAdminEvent ¶
func (c *LinkTokenClient) WaitForSetAdminEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*SetAdminEvent) bool) (*SetAdminEvent, error)
WaitForSetAdminEvent waits for a SetAdminEvent event.
func (*LinkTokenClient) WaitForSetAuthorizedEvent ¶
func (c *LinkTokenClient) WaitForSetAuthorizedEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*SetAuthorizedEvent) bool) (*SetAuthorizedEvent, error)
WaitForSetAuthorizedEvent waits for a SetAuthorizedEvent event.
func (*LinkTokenClient) WaitForTransferEvent ¶
func (c *LinkTokenClient) WaitForTransferEvent(ctx context.Context, startLedger uint32, timeout time.Duration, filter func(*TransferEvent) bool) (*TransferEvent, error)
WaitForTransferEvent waits for a TransferEvent event.
type MintEvent ¶
MintEvent represents the MintEvent event. Topics: [mint]
func ParseMintEvent ¶
func ParseMintEvent(e protocolrpc.EventInfo) (*MintEvent, 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 SetAdminEvent ¶
type SetAdminEvent struct {
Admin string
NewAdmin string
// Event metadata
Ledger uint32
TxHash string
}
SetAdminEvent represents the SetAdminEvent event. Topics: [set_admin]
func ParseSetAdminEvent ¶
func ParseSetAdminEvent(e protocolrpc.EventInfo) (*SetAdminEvent, error)
type SetAuthorizedEvent ¶
type SetAuthorizedEvent struct {
Id string
Authorize bool
// Event metadata
Ledger uint32
TxHash string
}
SetAuthorizedEvent represents the SetAuthorizedEvent event. Topics: [set_authorized]
func ParseSetAuthorizedEvent ¶
func ParseSetAuthorizedEvent(e protocolrpc.EventInfo) (*SetAuthorizedEvent, error)
type TransferEvent ¶
type TransferEvent struct {
From string
To string
Amount *big.Int
// Event metadata
Ledger uint32
TxHash string
}
TransferEvent represents the TransferEvent event. Topics: [transfer]
func ParseTransferEvent ¶
func ParseTransferEvent(e protocolrpc.EventInfo) (*TransferEvent, error)