Documentation ¶
Index ¶
- Constants
- func GetPDA(progID solana.PublicKey, prefix string, additionalSeeds ...[]byte) (solana.PublicKey, error)
- type AddressTables
- type CallMessageEvent
- type ContractRollback
- type CsMessage
- type CsMessageRequestType
- type CsMessageResultType
- type CsMessageType
- type CsResponseType
- type Dapp
- type MessageType
- type PDA
- type PDARegistry
- type ProxyRequestAccount
- type QueryAccountsResponse
- type RollbackAccount
- type RollbackMessageEvent
- type SendMessageEvent
- type SolEvent
- type TxInfo
- type XcallConfigAccount
- type XcallRollback
- type XcallRollbackAccount
Constants ¶
View Source
const ( PrefixConfig = "config" PrefixRollback = "rollback" PrefixProxyRequest = "proxy" PrefixPendingReq = "req" PrefixPendingRes = "res" PrefixNetworkFee = "fee" PrefixClaimFees = "claim_fees" PrefixReceipt = "receipt" )
View Source
const ( MethodSetAdmin = "set_admin" MethodSetFee = "set_fee" MethodClaimFees = "claim_fees" MethodRevertMessage = "revert_message" MethodDecodeCsMessage = "decode_cs_message" MethodSendMessage = "send_message" MethodRecvMessage = "recv_message" MethodExecuteCall = "execute_call" MethodExecuteRollback = "execute_rollback" MethodQueryRecvMessageAccounts = "query_recv_message_accounts" MethodQueryExecuteCallAccounts = "query_execute_call_accounts" MethodQueryExecuteRollbackAccounts = "query_execute_rollback_accounts" MethodQueryRevertMessageAccounts = "query_revert_message_accounts" ChainType = "solana" EventLogPrefix = "Program data: " ProgramReturnPrefix = "Program return: " EventSendMessage = "SendMessage" EventCallMessage = "CallMessage" EventRollbackMessage = "RollbackMessage" SolanaDenom = "lamport" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressTables ¶
type AddressTables map[solana.PublicKey]solana.PublicKeySlice
type CallMessageEvent ¶
type ContractRollback ¶
type CsMessage ¶
type CsMessage struct { MessageType CsMessageType Request *CsMessageRequestType Result *CsMessageResultType }
type CsMessageRequestType ¶
type CsMessageResultType ¶
type CsMessageResultType struct { SequenceNo big.Int ResponseCode CsResponseType Message []byte }
type CsMessageType ¶
type CsMessageType uint8
const ( CsMessageRequest CsMessageType = iota CsMessageResult )
type CsResponseType ¶
type CsResponseType uint8
const ( CsResponseFailure CsResponseType = iota CsResponseSuccess )
type MessageType ¶
type MessageType uint8
const ( CallMessage MessageType = iota CallMessageWithRollback CallMessagePersisted )
type PDA ¶
type PDA struct { SeedPrefix string ProgramID solana.PublicKey // if address is temporary then it can be deactivated from address lookup table onced used. IsTemp bool }
func (PDA) GetAddress ¶
type PDARegistry ¶
type PDARegistry struct { XcallConfig PDA XcallRollback PDA XcallProxyRequest PDA //temp XcallPendingRequest PDA //temp XcallPendingResponse PDA //temp ConnConfig PDA ConnNetworkFee PDA ConnClaimFees PDA ConnReceipt PDA //temp }
func NewPDARegistry ¶
func NewPDARegistry(xcallProgramID, connProgramID solana.PublicKey) *PDARegistry
type ProxyRequestAccount ¶
type ProxyRequestAccount struct { ReqMessage CsMessageRequestType Bump uint8 }
type QueryAccountsResponse ¶
type RollbackAccount ¶
type RollbackAccount struct { Rollback ContractRollback Owner solana.PublicKey Bump uint8 }
type RollbackMessageEvent ¶
type SendMessageEvent ¶
type XcallConfigAccount ¶
type XcallRollback ¶
type XcallRollbackAccount ¶
type XcallRollbackAccount struct { Rollback XcallRollback Bump uint8 }
Click to show internal directories.
Click to hide internal directories.