Documentation ¶
Index ¶
- Variables
- func Dnsresolve(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, ...) (string, any, error)
- func GetAuthorityAddress(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetChannelState(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetCollectionData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetJettonData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetMembers(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetNextProofInfo(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetNftAddressByIndex(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, ...) (string, any, error)
- func GetNftContent(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, ...) (string, any, error)
- func GetNftData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetParams(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetPluginList(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetPoolStatus(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetPublicKey(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetRevokedTime(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetSaleData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetStakingStatus(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetStorageContractAddress(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, ...) (string, any, error)
- func GetStorageContractData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetStorageParams(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetSubwalletId(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetTelemintAuctionConfig(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetTelemintAuctionState(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetTelemintTokenName(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetTorrentHash(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetWalletAddress(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, ...) (string, any, error)
- func GetWalletData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func GetWalletParams(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func IsActive(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func IsPluginInstalled(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, ...) (string, any, error)
- func IsWallet(i ContractInterface) bool
- func ListNominators(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func ListVotes(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func MessageDecoder(cell *boc.Cell) (string, any, error)
- func NewContractInspector(opts ...InspectorOption) *contractInspector
- func RoyaltyParams(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- func Seqno(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)
- type AcceptStorageContractMsgBody
- type ChallengeQuarantinedChannelStateMsgBody
- type ChannelClosedMsgBody
- type ChannelCooperativeCloseMsgBody
- type ChannelCooperativeCommitMsgBody
- type CloseStorageContractMsgBody
- type ClosingConfig
- type ConditionalPayment
- type ContentData
- type ContractDescription
- type ContractInterface
- type DeployStorageContractMsgBody
- type Dnsresolve_RecordResult
- type Dnsresolve_RecordsResult
- type ExcessMsgBody
- type Executor
- type FinishUncooperativeChannelCloseMsgBody
- type FullContent
- type GetAuthorityAddressResult
- type GetChannelStateResult
- type GetCollectionDataResult
- type GetJettonDataResult
- type GetMembers_WhalesNominatorResult
- type GetNextProofInfoResult
- type GetNftAddressByIndexResult
- type GetNftContentResult
- type GetNftDataResult
- type GetParams_WhalesNominatorResult
- type GetPluginListResult
- type GetPoolStatusResult
- type GetPublicKeyResult
- type GetRevokedTimeResult
- type GetRoyaltyParamsMsgBody
- type GetSaleData_BasicResult
- type GetSaleData_GetgemsAuctionResult
- type GetSaleData_GetgemsResult
- type GetStakingStatusResult
- type GetStaticDataMsgBody
- type GetStorageContractAddressResult
- type GetStorageContractDataResult
- type GetStorageParamsResult
- type GetSubwalletIdResult
- type GetTelemintAuctionConfigResult
- type GetTelemintAuctionStateResult
- type GetTelemintTokenNameResult
- type GetTorrentHashResult
- type GetWalletAddressResult
- type GetWalletDataResult
- type GetWalletParamsResult
- type InitPaymentChannelMsgBody
- type InspectorOption
- type InspectorOptions
- type InterfaceDescription
- type InvokeFn
- type IsActiveResult
- type IsPluginInstalledResult
- type JettonBurnMsgBody
- type JettonInternalTransferMsgBody
- type JettonTransferMsgBody
- type ListNominatorsResult
- type ListVotesResult
- type MethodDescription
- type MethodInvocation
- type NftOwnershipAssignedMsgBody
- type NftRoyaltyParams
- type NftTransferMsgBody
- type OfferStorageContractMsgBody
- type OwnershipProofMsgBody
- type PaymentConfig
- type PaymentRequestMsgBody
- type PaymentRequestResponseMsgBody
- type ProofStorageMsgBody
- type ProveOwnershipMsgBody
- type QuarantinedState
- type ReportRoyaltyParamsMsgBody
- type ReportStaticDataMsgBody
- type RoyaltyParamsResult
- type SbtDestroyMsgBody
- type SbtOwnerInfoMsgBody
- type SbtRequestOwnerMsgBody
- type SbtRevokeMsgBody
- type SemiChannel
- type SemiChannelBody
- type SeqnoResult
- type SettleChannelConditionalsMsgBody
- type SignedSemiChannel
- type StartUncooperativeChannelCloseMsgBody
- type Storage
- type StorageContractConfirmedMsgBody
- type StorageContractTerminatedMsgBody
- type StorageRewardWithdrawalMsgBody
- type StorageWithdrawMsgBody
- type TeleitemAuctionConfig
- type TeleitemCancelAuctionMsgBody
- type TeleitemDeployMsgBody
- type TeleitemStartAuctionMsgBody
- type TelemintData
- type TelemintDeployMsgBody
- type TelemintDeployV2MsgBody
- type TelemintRestrictions
- type TelemintUnsignedDeploy
- type TelemintUnsignedDeployV2
- type TextCommentMsgBody
- type TopUpChannelBalanceMsgBody
- type TorrentInfo
- type UpdatePubkeyMsgBody
- type UpdateStorageParamsMsgBody
- type WalletPluginDestructMsgBody
- type WalletPluginDestructResponseMsgBody
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownSimpleGetMethods = map[int][]func(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error){ 69506: {GetTelemintTokenName}, 71463: {GetTorrentHash}, 72748: {GetSaleData}, 78748: {GetPublicKey}, 81467: {GetSubwalletId}, 81490: {GetNextProofInfo}, 84760: {GetAuthorityAddress}, 85143: {Seqno}, 85719: {RoyaltyParams}, 86593: {GetStorageContractData}, 97026: {GetWalletData}, 97667: {GetRevokedTime}, 102351: {GetNftData}, 102491: {GetCollectionData}, 104346: {GetStorageParams}, 106029: {GetJettonData}, 106901: {GetChannelState}, 107653: {GetPluginList}, 111161: {ListNominators}, 115150: {GetParams}, 120146: {GetPoolStatus}, 122058: {IsActive}, 122498: {GetTelemintAuctionState}, 123928: {GetStakingStatus}, 127654: {GetMembers}, 129619: {GetTelemintAuctionConfig}, 130271: {GetWalletParams}, 130309: {ListVotes}, }
View Source
var ResultTypes = []interface{}{ &Dnsresolve_RecordResult{}, &Dnsresolve_RecordsResult{}, &GetAuthorityAddressResult{}, &GetChannelStateResult{}, &GetCollectionDataResult{}, &GetJettonDataResult{}, &GetMembers_WhalesNominatorResult{}, &GetNextProofInfoResult{}, &GetNftAddressByIndexResult{}, &GetNftContentResult{}, &GetNftDataResult{}, &GetParams_WhalesNominatorResult{}, &GetPluginListResult{}, &GetPoolStatusResult{}, &GetPublicKeyResult{}, &GetRevokedTimeResult{}, &GetSaleData_BasicResult{}, &GetSaleData_GetgemsAuctionResult{}, &GetSaleData_GetgemsResult{}, &GetStakingStatusResult{}, &GetStorageContractAddressResult{}, &GetStorageContractDataResult{}, &GetStorageParamsResult{}, &GetSubwalletIdResult{}, &GetTelemintAuctionConfigResult{}, &GetTelemintAuctionStateResult{}, &GetTelemintTokenNameResult{}, &GetTorrentHashResult{}, &GetWalletAddressResult{}, &GetWalletDataResult{}, &GetWalletParamsResult{}, &IsActiveResult{}, &IsPluginInstalledResult{}, &ListNominatorsResult{}, &ListVotesResult{}, &RoyaltyParamsResult{}, &SeqnoResult{}, }
Functions ¶
func Dnsresolve ¶
func GetAuthorityAddress ¶
func GetChannelState ¶
func GetCollectionData ¶
func GetJettonData ¶
func GetMembers ¶
func GetNextProofInfo ¶
func GetNftAddressByIndex ¶
func GetNftContent ¶
func GetNftData ¶
func GetPluginList ¶
func GetPoolStatus ¶
func GetPublicKey ¶
func GetRevokedTime ¶
func GetSaleData ¶
func GetStakingStatus ¶
func GetStorageContractData ¶
func GetStorageParams ¶
func GetSubwalletId ¶
func GetTelemintAuctionConfig ¶ added in v1.0.3
func GetTelemintAuctionState ¶ added in v1.0.3
func GetTelemintTokenName ¶ added in v1.0.3
func GetTorrentHash ¶
func GetWalletAddress ¶
func GetWalletData ¶
func GetWalletParams ¶
func IsPluginInstalled ¶
func IsWallet ¶
func IsWallet(i ContractInterface) bool
IsWallet returns true if the given interface is one of the wallet interfaces.
func ListNominators ¶
func NewContractInspector ¶
func NewContractInspector(opts ...InspectorOption) *contractInspector
func RoyaltyParams ¶
Types ¶
type AcceptStorageContractMsgBody ¶
type AcceptStorageContractMsgBody struct {
QueryId uint64
}
type ChannelClosedMsgBody ¶
type CloseStorageContractMsgBody ¶
type CloseStorageContractMsgBody struct {
QueryId uint64
}
type ClosingConfig ¶
type ContentData ¶
type ContractDescription ¶
type ContractDescription struct { // Interfaces is a list of interfaces implemented by a contract. Interfaces map[ContractInterface]InterfaceDescription }
func (ContractDescription) ImplementedInterfaces ¶
func (ci ContractDescription) ImplementedInterfaces() []ContractInterface
type ContractInterface ¶
type ContractInterface string
const ( NftSale ContractInterface = "nft_sale" NftSaleGetgems ContractInterface = "nft_sale_getgems" PaymentChannel ContractInterface = "payment_channel" StorageContract ContractInterface = "storage_contract" StorageProvider ContractInterface = "storage_provider" Telemint ContractInterface = "telemint" Tep62Collection ContractInterface = "tep62_collection" Tep62Item ContractInterface = "tep62_item" Tep66 ContractInterface = "tep66" Tep74 ContractInterface = "tep74" Tep85 ContractInterface = "tep85" TfNominator ContractInterface = "tf_nominator" Wallet ContractInterface = "wallet" WalletV4R2 ContractInterface = "wallet_v4r2" WhalesNominators ContractInterface = "whales_nominators" )
more wallet-related contract interfaces are defined in wallet.go
const ( // Wallet is an abstract interface, // any wallet in the blockchain has a concrete version like v1R1, v4R1 but // whenever a contract implements any specific wallet interface, this one will be added too. WalletV1R1 ContractInterface = "wallet_v1R1" WalletV1R2 ContractInterface = "wallet_v1R2" WalletV1R3 ContractInterface = "wallet_v1R3" WalletV2R1 ContractInterface = "wallet_v2R1" WalletV2R2 ContractInterface = "wallet_v2R2" WalletV3R1 ContractInterface = "wallet_v3R1" WalletV3R2 ContractInterface = "wallet_v3R2" WalletV4R1 ContractInterface = "wallet_v4R1" // WalletV4 is an abstract interface, added once a wallet implements any of v4R* versions. WalletV4 ContractInterface = "wallet_v4" // WalletHighload is an abstract interface, added once a wallet implements any of HighLoad versions. WalletHighload ContractInterface = "wallet_highload" )
type Dnsresolve_RecordResult ¶
type Dnsresolve_RecordsResult ¶
type Dnsresolve_RecordsResult struct { ResolvedBits int64 Result tlb.DNSRecordSet }
type ExcessMsgBody ¶
type ExcessMsgBody struct {
QueryId uint64
}
type FinishUncooperativeChannelCloseMsgBody ¶
type FinishUncooperativeChannelCloseMsgBody struct{}
type FullContent ¶
type GetAuthorityAddressResult ¶
type GetAuthorityAddressResult struct {
Address tlb.MsgAddress
}
type GetChannelStateResult ¶
type GetChannelStateResult struct {
State uint64
}
type GetCollectionDataResult ¶
type GetJettonDataResult ¶
type GetNextProofInfoResult ¶
type GetNftAddressByIndexResult ¶
type GetNftAddressByIndexResult struct {
Address tlb.MsgAddress
}
type GetNftContentResult ¶
type GetNftContentResult struct {
Content FullContent
}
type GetNftDataResult ¶
type GetNftDataResult struct { Init bool Index tlb.Int257 CollectionAddress tlb.MsgAddress OwnerAddress tlb.MsgAddress IndividualContent tlb.Any }
type GetPluginListResult ¶
type GetPoolStatusResult ¶
type GetPublicKeyResult ¶
type GetRevokedTimeResult ¶
type GetRevokedTimeResult struct {
Time uint64
}
type GetRoyaltyParamsMsgBody ¶
type GetRoyaltyParamsMsgBody struct {
QueryId uint64
}
type GetSaleData_BasicResult ¶
type GetSaleData_BasicResult struct { Marketplace tlb.MsgAddress Nft tlb.MsgAddress Owner tlb.MsgAddress FullPrice tlb.Int257 MarketFee uint64 RoyaltyAddress tlb.MsgAddress RoyaltyAmount uint64 }
type GetSaleData_GetgemsAuctionResult ¶
type GetSaleData_GetgemsAuctionResult struct { Magic uint64 End bool EndTime uint32 Marketplace tlb.MsgAddress Nft tlb.MsgAddress Owner tlb.MsgAddress LastBid uint64 LastMember tlb.MsgAddress MinStep uint64 MarketFeeAddress tlb.MsgAddress MpFeeFactor uint32 MpFeeBase uint32 RoyaltyAddress tlb.MsgAddress RoyaltyFeeFactor uint32 RoyaltyFeeBase uint32 MaxBid uint64 MinBid uint64 CreatedAt uint32 LastBidAt uint32 IsCanceled bool }
type GetSaleData_GetgemsResult ¶
type GetSaleData_GetgemsResult struct { Magic uint64 IsComplete bool CreatedAt uint64 Marketplace tlb.MsgAddress Nft tlb.MsgAddress Owner tlb.MsgAddress FullPrice tlb.Int257 MarketFeeAddress tlb.MsgAddress MarketFee uint64 RoyaltyAddress tlb.MsgAddress RoyaltyAmount uint64 }
type GetStakingStatusResult ¶
type GetStaticDataMsgBody ¶
type GetStaticDataMsgBody struct {
QueryId uint64
}
type GetStorageContractAddressResult ¶
type GetStorageContractAddressResult struct {
StorageContractAddress tlb.MsgAddress
}
type GetStorageParamsResult ¶
type GetSubwalletIdResult ¶
type GetSubwalletIdResult struct {
SubwalletId uint32
}
type GetTelemintAuctionConfigResult ¶ added in v1.0.3
type GetTelemintAuctionStateResult ¶ added in v1.0.3
type GetTelemintTokenNameResult ¶ added in v1.0.3
type GetTorrentHashResult ¶
type GetWalletAddressResult ¶
type GetWalletAddressResult struct {
JettonWalletAddress tlb.MsgAddress
}
type GetWalletDataResult ¶
type GetWalletDataResult struct { Balance tlb.Int257 Owner tlb.MsgAddress Jetton tlb.MsgAddress JettonWalletCode tlb.Any }
type GetWalletParamsResult ¶
type InspectorOption ¶
type InspectorOption func(o *InspectorOptions)
func InspectWithAdditionalMethods ¶
func InspectWithAdditionalMethods(list []MethodDescription) InspectorOption
type InspectorOptions ¶
type InspectorOptions struct {
// contains filtered or unexported fields
}
type InterfaceDescription ¶
type InterfaceDescription struct { // GetMethods contains successfully executed methods and results of executions. GetMethods map[string]MethodInvocation }
type IsActiveResult ¶
type IsActiveResult struct {
IsActive bool
}
type IsPluginInstalledResult ¶
type IsPluginInstalledResult struct {
Success bool
}
type JettonBurnMsgBody ¶
type JettonInternalTransferMsgBody ¶
type JettonInternalTransferMsgBody struct { QueryId uint64 Amount tlb.VarUInteger16 From tlb.MsgAddress ResponseAddress tlb.MsgAddress ForwardTonAmount tlb.VarUInteger16 }
type JettonTransferMsgBody ¶
type JettonTransferMsgBody struct { QueryId uint64 Amount tlb.VarUInteger16 Destination tlb.MsgAddress ResponseDestination tlb.MsgAddress CustomPayload tlb.Maybe[tlb.Ref[tlb.Any]] ForwardTonAmount tlb.VarUInteger16 ForwardPayload tlb.EitherRef[tlb.Any] }
type ListNominatorsResult ¶
type ListVotesResult ¶
type MethodDescription ¶
type MethodDescription struct { Name string // InvokeFn executes this method on a contract and returns parsed execution results. InvokeFn InvokeFn // ImplementedBy is a list of contract interfaces that implement this method. // All contract interfaces share the same method with the same output type. ImplementedBy []ContractInterface // ImplementedByFn returns an implemented contract interface based on a type hint from InvokeFn. // Contract interfaces share the same method name but output is different for each contract interface. // Check GetSaleData out as an example. ImplementedByFn func(typeName string) ContractInterface }
MethodDescription describes a particular method and provides a function to execute it.
type MethodInvocation ¶
type NftRoyaltyParams ¶
type NftRoyaltyParams struct { Numerator uint16 Denominator uint16 Destination tlb.MsgAddress }
type NftTransferMsgBody ¶
type OfferStorageContractMsgBody ¶
type OfferStorageContractMsgBody struct {
QueryId uint64
}
type OwnershipProofMsgBody ¶
type PaymentConfig ¶
type PaymentConfig struct { ExcessFee tlb.Grams DestA tlb.MsgAddress DestB tlb.MsgAddress }
type PaymentRequestMsgBody ¶
type PaymentRequestMsgBody struct { QueryId uint64 Amount tlb.CurrencyCollection }
type PaymentRequestResponseMsgBody ¶
type PaymentRequestResponseMsgBody struct {
QueryId uint64
}
type ProofStorageMsgBody ¶
type ProveOwnershipMsgBody ¶
type QuarantinedState ¶
type QuarantinedState struct { StateA SemiChannelBody StateB SemiChannelBody QuarantineStarts uint32 StateCommitedByA bool }
type ReportRoyaltyParamsMsgBody ¶
type ReportRoyaltyParamsMsgBody struct { QueryId uint64 Numerator uint16 Denominator uint16 Destination tlb.MsgAddress }
type ReportStaticDataMsgBody ¶
type ReportStaticDataMsgBody struct { QueryId uint64 Index tlb.Uint256 Collection tlb.MsgAddress }
type RoyaltyParamsResult ¶
type RoyaltyParamsResult struct { Numerator uint16 Denominator uint16 Destination tlb.MsgAddress }
type SbtDestroyMsgBody ¶
type SbtDestroyMsgBody struct {
QueryId uint64
}
type SbtOwnerInfoMsgBody ¶
type SbtRequestOwnerMsgBody ¶
type SbtRevokeMsgBody ¶
type SbtRevokeMsgBody struct {
QueryId uint64
}
type SemiChannel ¶
type SemiChannel struct { Magic tlb.Magic `tlb:"#43685374"` ChannelId tlb.Uint128 Data SemiChannelBody CounterpartyData tlb.Maybe[tlb.Ref[SemiChannelBody]] }
type SemiChannelBody ¶
type SeqnoResult ¶
type SeqnoResult struct {
State uint32
}
type SignedSemiChannel ¶
type SignedSemiChannel struct { Signature tlb.Bits512 State SemiChannel }
type StorageRewardWithdrawalMsgBody ¶
type StorageRewardWithdrawalMsgBody struct {
QueryId uint64
}
type StorageWithdrawMsgBody ¶
type StorageWithdrawMsgBody struct {
QueryId uint64
}
type TeleitemAuctionConfig ¶
type TeleitemCancelAuctionMsgBody ¶
type TeleitemCancelAuctionMsgBody struct {
QueryId int64
}
type TeleitemDeployMsgBody ¶
type TeleitemDeployMsgBody struct { SenderAddress tlb.MsgAddress Bid tlb.Grams Username tlb.FixedLengthText Content tlb.Ref[tlb.Any] AuctionConfig tlb.Ref[TeleitemAuctionConfig] RoyaltyParams tlb.Ref[NftRoyaltyParams] }
type TeleitemStartAuctionMsgBody ¶
type TeleitemStartAuctionMsgBody struct { QueryId int64 AuctionConfig tlb.Ref[TeleitemAuctionConfig] }
type TelemintData ¶
type TelemintDeployMsgBody ¶
type TelemintDeployMsgBody struct { Sig tlb.Bits512 Msg TelemintUnsignedDeploy }
type TelemintDeployV2MsgBody ¶
type TelemintDeployV2MsgBody struct { Sig tlb.Bits512 Msg TelemintUnsignedDeployV2 }
type TelemintRestrictions ¶
type TelemintRestrictions struct { ForceSenderAddress tlb.Maybe[tlb.MsgAddress] RewriteSenderAddress tlb.Maybe[tlb.MsgAddress] }
type TelemintUnsignedDeploy ¶
type TextCommentMsgBody ¶
type TorrentInfo ¶
type UpdatePubkeyMsgBody ¶
type WalletPluginDestructMsgBody ¶
type WalletPluginDestructMsgBody struct {
QueryId uint64
}
type WalletPluginDestructResponseMsgBody ¶
type WalletPluginDestructResponseMsgBody struct {
QueryId uint64
}
Click to show internal directories.
Click to hide internal directories.