abi

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 8 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KnownGetMethodsDecoder = map[string][]func(tlb.VmStack) (string, any, error){
	"seqno":                                    {DecodeSeqnoResult},
	"get_public_key":                           {DecodeGetPublicKeyResult},
	"get_subwallet_id":                         {DecodeGetSubwalletIdResult},
	"get_plugin_list":                          {DecodeGetPluginListResult},
	"is_plugin_installed":                      {DecodeIsPluginInstalledResult},
	"get_nft_data":                             {DecodeGetNftDataResult},
	"get_nft_content":                          {DecodeGetNftContentResult},
	"get_collection_data":                      {DecodeGetCollectionDataResult},
	"get_nft_address_by_index":                 {DecodeGetNftAddressByIndexResult},
	"royalty_params":                           {DecodeRoyaltyParamsResult},
	"get_editor":                               {DecodeGetEditorResult},
	"get_auction_info":                         {DecodeGetAuctionInfoResult},
	"get_subscription_data":                    {DecodeGetSubscriptionDataResult},
	"get_jetton_data":                          {DecodeGetJettonDataResult},
	"get_wallet_address":                       {DecodeGetWalletAddressResult},
	"get_wallet_data":                          {DecodeGetWalletDataResult},
	"dnsresolve":                               {DecodeDnsresolve_RecordsResult},
	"get_last_fill_up_time":                    {DecodeGetLastFillUpTimeResult},
	"get_domain":                               {DecodeGetDomainResult},
	"get_full_domain":                          {DecodeGetFullDomainResult},
	"get_sale_data":                            {DecodeGetSaleData_BasicResult, DecodeGetSaleData_GetgemsResult, DecodeGetSaleData_GetgemsAuctionResult},
	"get_authority_address":                    {DecodeGetAuthorityAddressResult},
	"get_revoked_time":                         {DecodeGetRevokedTimeResult},
	"get_channel_state":                        {DecodeGetChannelStateResult},
	"get_wallet_params":                        {DecodeGetWalletParamsResult},
	"get_storage_params":                       {DecodeGetStorageParamsResult},
	"get_storage_contract_address":             {DecodeGetStorageContractAddressResult},
	"get_storage_contract_data":                {DecodeGetStorageContractDataResult},
	"get_torrent_hash":                         {DecodeGetTorrentHashResult},
	"is_active":                                {DecodeIsActiveResult},
	"get_next_proof_info":                      {DecodeGetNextProofInfoResult},
	"list_nominators":                          {DecodeListNominatorsResult},
	"list_votes":                               {DecodeListVotesResult},
	"get_pool_data":                            {DecodeGetPoolData_TfResult},
	"get_staking_status":                       {DecodeGetStakingStatusResult},
	"get_pool_status":                          {DecodeGetPoolStatusResult},
	"get_member":                               {DecodeGetMember_WhalesNominatorResult},
	"get_members_raw":                          {DecodeGetMembersRaw_WhalesNominatorResult},
	"get_params":                               {DecodeGetParams_WhalesNominatorResult},
	"get_telemint_auction_state":               {DecodeGetTelemintAuctionStateResult},
	"get_telemint_auction_config":              {DecodeGetTelemintAuctionConfigResult},
	"get_telemint_token_name":                  {DecodeGetTelemintTokenNameResult},
	"get_pool_finance_data":                    {DecodeGetPoolFinanceDataResult},
	"get_pool_current_round_deposit_minter":    {DecodeGetPoolCurrentRoundDepositMinterResult},
	"get_pool_current_round_withdrawal_minter": {DecodeGetPoolCurrentRoundWithdrawalMinterResult},
	"get_validator_controller_data":            {DecodeGetValidatorControllerDataResult},
}
View Source
var KnownMsgTypes = map[string]any{
	TextCommentMsgOp:                           TextCommentMsgBody{},
	ProveOwnershipMsgOp:                        ProveOwnershipMsgBody{},
	NftOwnershipAssignedMsgOp:                  NftOwnershipAssignedMsgBody{},
	OwnershipProofMsgOp:                        OwnershipProofMsgBody{},
	ChallengeQuarantinedChannelStateMsgOp:      ChallengeQuarantinedChannelStateMsgBody{},
	SbtOwnerInfoMsgOp:                          SbtOwnerInfoMsgBody{},
	InitPaymentChannelMsgOp:                    InitPaymentChannelMsgBody{},
	JettonTransferMsgOp:                        JettonTransferMsgBody{},
	OfferStorageContractMsgOp:                  OfferStorageContractMsgBody{},
	TonstakeControllerPoolHaltMsgOp:            TonstakeControllerPoolHaltMsgBody{},
	TonstakeControllerCreditMsgOp:              TonstakeControllerCreditMsgBody{},
	JettonInternalTransferMsgOp:                JettonInternalTransferMsgBody{},
	SbtDestroyMsgOp:                            SbtDestroyMsgBody{},
	StartUncooperativeChannelCloseMsgOp:        StartUncooperativeChannelCloseMsgBody{},
	FinishUncooperativeChannelCloseMsgOp:       FinishUncooperativeChannelCloseMsgBody{},
	TonstakeControllerPoolSendMessageMsgOp:     TonstakeControllerPoolSendMessageMsgBody{},
	TeleitemDeployMsgOp:                        TeleitemDeployMsgBody{},
	GetStaticDataMsgOp:                         GetStaticDataMsgBody{},
	TonstakePoolWithdrawMsgOp:                  TonstakePoolWithdrawMsgBody{},
	TeleitemCancelAuctionMsgOp:                 TeleitemCancelAuctionMsgBody{},
	ProofStorageMsgOp:                          ProofStorageMsgBody{},
	TonstakeControllerSendRequestLoanMsgOp:     TonstakeControllerSendRequestLoanMsgBody{},
	TelemintDeployMsgOp:                        TelemintDeployMsgBody{},
	TelemintDeployV2MsgOp:                      TelemintDeployV2MsgBody{},
	StorageWithdrawMsgOp:                       StorageWithdrawMsgBody{},
	TonstakePoolDepositMsgOp:                   TonstakePoolDepositMsgBody{},
	TeleitemStartAuctionMsgOp:                  TeleitemStartAuctionMsgBody{},
	UpdatePubkeyMsgOp:                          UpdatePubkeyMsgBody{},
	UpdateStorageParamsMsgOp:                   UpdateStorageParamsMsgBody{},
	ChannelCooperativeCloseMsgOp:               ChannelCooperativeCloseMsgBody{},
	JettonBurnMsgOp:                            JettonBurnMsgBody{},
	NftTransferMsgOp:                           NftTransferMsgBody{},
	WalletPluginDestructMsgOp:                  WalletPluginDestructMsgBody{},
	SettleChannelConditionalsMsgOp:             SettleChannelConditionalsMsgBody{},
	TopUpChannelBalanceMsgOp:                   TopUpChannelBalanceMsgBody{},
	GetRoyaltyParamsMsgOp:                      GetRoyaltyParamsMsgBody{},
	SbtRevokeMsgOp:                             SbtRevokeMsgBody{},
	PaymentRequestMsgOp:                        PaymentRequestMsgBody{},
	TonstakeControllerPoolUnhaltMsgOp:          TonstakeControllerPoolUnhaltMsgBody{},
	JettonNotifyMsgOp:                          JettonNotifyMsgBody{},
	SubscriptionPaymentMsgOp:                   SubscriptionPaymentMsgBody{},
	ChannelCooperativeCommitMsgOp:              ChannelCooperativeCommitMsgBody{},
	TonstakeControllerPoolSetSudoerMsgOp:       TonstakeControllerPoolSetSudoerMsgBody{},
	CloseStorageContractMsgOp:                  CloseStorageContractMsgBody{},
	AcceptStorageContractMsgOp:                 AcceptStorageContractMsgBody{},
	TonstakePoolSetRolesMsgOp:                  TonstakePoolSetRolesMsgBody{},
	TonstakeControllerApproveMsgOp:             TonstakeControllerApproveMsgBody{},
	WhalesNominatorsDepositMsgOp:               WhalesNominatorsDepositMsgBody{},
	ReportStaticDataMsgOp:                      ReportStaticDataMsgBody{},
	TonstakeControllerPoolUpgradeMsgOp:         TonstakeControllerPoolUpgradeMsgBody{},
	ReportRoyaltyParamsMsgOp:                   ReportRoyaltyParamsMsgBody{},
	StorageRewardWithdrawalMsgOp:               StorageRewardWithdrawalMsgBody{},
	StorageContractTerminatedMsgOp:             StorageContractTerminatedMsgBody{},
	TonstakeControllerWithdrawValidatorMsgOp:   TonstakeControllerWithdrawValidatorMsgBody{},
	SbtRequestOwnerMsgOp:                       SbtRequestOwnerMsgBody{},
	TonstakeControllerTopUpMsgOp:               TonstakeControllerTopUpMsgBody{},
	StorageContractConfirmedMsgOp:              StorageContractConfirmedMsgBody{},
	ExcessMsgOp:                                ExcessMsgBody{},
	WhalesNominatorsWithdrawMsgOp:              WhalesNominatorsWithdrawMsgBody{},
	ChannelClosedMsgOp:                         ChannelClosedMsgBody{},
	TonstakePoolLoanRepaymentMsgOp:             TonstakePoolLoanRepaymentMsgBody{},
	TonstakeControllerNewStakeMsgOp:            TonstakeControllerNewStakeMsgBody{},
	WalletPluginDestructResponseMsgOp:          WalletPluginDestructResponseMsgBody{},
	DeployStorageContractMsgOp:                 DeployStorageContractMsgBody{},
	TonstakeControllerDisapproveMsgOp:          TonstakeControllerDisapproveMsgBody{},
	TonstakeControllerRecoverStakeMsgOp:        TonstakeControllerRecoverStakeMsgBody{},
	TonstakeControllerReturnUnusedLoanMsgOp:    TonstakeControllerReturnUnusedLoanMsgBody{},
	PaymentRequestResponseMsgOp:                PaymentRequestResponseMsgBody{},
	TonstakeControllerUpdateValidatorHashMsgOp: TonstakeControllerUpdateValidatorHashMsgBody{},
}
View Source
var KnownSimpleGetMethods = map[int][]func(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error){
	66763:  {GetFullDomain},
	69506:  {GetTelemintTokenName},
	71463:  {GetTorrentHash},
	72748:  {GetSaleData},
	78748:  {GetPublicKey},
	80697:  {GetAuctionInfo},
	81467:  {GetSubwalletId},
	81490:  {GetNextProofInfo},
	81689:  {GetPoolData},
	84760:  {GetAuthorityAddress},
	85143:  {Seqno},
	85719:  {RoyaltyParams},
	86593:  {GetStorageContractData},
	89295:  {GetMembersRaw},
	90228:  {GetEditor},
	91481:  {GetLastFillUpTime},
	92260:  {GetSubscriptionData},
	97026:  {GetWalletData},
	97667:  {GetRevokedTime},
	102351: {GetNftData},
	102491: {GetCollectionData},
	103232: {GetValidatorControllerData},
	103597: {GetPoolCurrentRoundDepositMinter},
	104346: {GetStorageParams},
	106029: {GetJettonData},
	106901: {GetChannelState},
	107653: {GetPluginList},
	111161: {ListNominators},
	111643: {GetPoolFinanceData},
	115150: {GetParams},
	119378: {GetDomain},
	120146: {GetPoolStatus},
	122058: {IsActive},
	122498: {GetTelemintAuctionState},
	123928: {GetStakingStatus},
	129619: {GetTelemintAuctionConfig},
	130271: {GetWalletParams},
	130309: {ListVotes},
	131049: {GetPoolCurrentRoundWithdrawalMinter},
}

Functions

func DecodeDnsresolve_RecordsResult added in v1.0.7

func DecodeDnsresolve_RecordsResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetAuctionInfoResult added in v1.0.14

func DecodeGetAuctionInfoResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetAuthorityAddressResult added in v1.0.7

func DecodeGetAuthorityAddressResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetChannelStateResult added in v1.0.7

func DecodeGetChannelStateResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetCollectionDataResult added in v1.0.7

func DecodeGetCollectionDataResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetDomainResult added in v1.0.14

func DecodeGetDomainResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetEditorResult added in v1.0.14

func DecodeGetEditorResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetFullDomainResult added in v1.0.14

func DecodeGetFullDomainResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetJettonDataResult added in v1.0.7

func DecodeGetJettonDataResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetLastFillUpTimeResult added in v1.0.14

func DecodeGetLastFillUpTimeResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetMember_WhalesNominatorResult added in v1.0.7

func DecodeGetMember_WhalesNominatorResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetMembersRaw_WhalesNominatorResult added in v1.0.7

func DecodeGetMembersRaw_WhalesNominatorResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetNextProofInfoResult added in v1.0.7

func DecodeGetNextProofInfoResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetNftAddressByIndexResult added in v1.0.7

func DecodeGetNftAddressByIndexResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetNftContentResult added in v1.0.7

func DecodeGetNftContentResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetNftDataResult added in v1.0.7

func DecodeGetNftDataResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetParams_WhalesNominatorResult added in v1.0.7

func DecodeGetParams_WhalesNominatorResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetPluginListResult added in v1.0.7

func DecodeGetPluginListResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetPoolCurrentRoundDepositMinterResult added in v1.1.0

func DecodeGetPoolCurrentRoundDepositMinterResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetPoolCurrentRoundWithdrawalMinterResult added in v1.1.0

func DecodeGetPoolCurrentRoundWithdrawalMinterResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetPoolData_TfResult added in v1.0.7

func DecodeGetPoolData_TfResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetPoolFinanceDataResult added in v1.1.0

func DecodeGetPoolFinanceDataResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetPoolStatusResult added in v1.0.7

func DecodeGetPoolStatusResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetPublicKeyResult added in v1.0.7

func DecodeGetPublicKeyResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetRevokedTimeResult added in v1.0.7

func DecodeGetRevokedTimeResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetSaleData_BasicResult added in v1.0.7

func DecodeGetSaleData_BasicResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetSaleData_GetgemsAuctionResult added in v1.0.7

func DecodeGetSaleData_GetgemsAuctionResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetSaleData_GetgemsResult added in v1.0.7

func DecodeGetSaleData_GetgemsResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetStakingStatusResult added in v1.0.7

func DecodeGetStakingStatusResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetStorageContractAddressResult added in v1.0.7

func DecodeGetStorageContractAddressResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetStorageContractDataResult added in v1.0.7

func DecodeGetStorageContractDataResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetStorageParamsResult added in v1.0.7

func DecodeGetStorageParamsResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetSubscriptionDataResult added in v1.0.14

func DecodeGetSubscriptionDataResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetSubwalletIdResult added in v1.0.7

func DecodeGetSubwalletIdResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetTelemintAuctionConfigResult added in v1.0.7

func DecodeGetTelemintAuctionConfigResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetTelemintAuctionStateResult added in v1.0.7

func DecodeGetTelemintAuctionStateResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetTelemintTokenNameResult added in v1.0.7

func DecodeGetTelemintTokenNameResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetTorrentHashResult added in v1.0.7

func DecodeGetTorrentHashResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetValidatorControllerDataResult added in v1.1.0

func DecodeGetValidatorControllerDataResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetWalletAddressResult added in v1.0.7

func DecodeGetWalletAddressResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetWalletDataResult added in v1.0.7

func DecodeGetWalletDataResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeGetWalletParamsResult added in v1.0.7

func DecodeGetWalletParamsResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeIsActiveResult added in v1.0.7

func DecodeIsActiveResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeIsPluginInstalledResult added in v1.0.7

func DecodeIsPluginInstalledResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeListNominatorsResult added in v1.0.7

func DecodeListNominatorsResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeListVotesResult added in v1.0.7

func DecodeListVotesResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeRoyaltyParamsResult added in v1.0.7

func DecodeRoyaltyParamsResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func DecodeSeqnoResult added in v1.0.7

func DecodeSeqnoResult(stack tlb.VmStack) (resultType string, resultAny any, err error)

func Dnsresolve

func Dnsresolve(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, domain []byte, category tlb.Int257) (string, any, error)

func GetAuctionInfo added in v1.0.14

func GetAuctionInfo(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetAuthorityAddress

func GetAuthorityAddress(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetChannelState

func GetChannelState(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetCollectionData

func GetCollectionData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetDomain added in v1.0.14

func GetDomain(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetEditor added in v1.0.14

func GetEditor(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetFullDomain added in v1.0.14

func GetFullDomain(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetJettonData

func GetJettonData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetLastFillUpTime added in v1.0.14

func GetLastFillUpTime(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetMember added in v1.0.4

func GetMember(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, member tlb.MsgAddress) (string, any, error)

func GetMembersRaw added in v1.0.4

func GetMembersRaw(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetNextProofInfo

func GetNextProofInfo(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetNftAddressByIndex

func GetNftAddressByIndex(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, index tlb.Int257) (string, any, error)

func GetNftContent

func GetNftContent(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, index tlb.Int257, individualContent tlb.Any) (string, any, error)

func GetNftData

func GetNftData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetParams

func GetParams(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetPluginList

func GetPluginList(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetPoolCurrentRoundDepositMinter added in v1.1.0

func GetPoolCurrentRoundDepositMinter(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetPoolCurrentRoundWithdrawalMinter added in v1.1.0

func GetPoolCurrentRoundWithdrawalMinter(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetPoolData added in v1.0.5

func GetPoolData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetPoolFinanceData added in v1.1.0

func GetPoolFinanceData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetPoolStatus

func GetPoolStatus(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetPublicKey

func GetPublicKey(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetRevokedTime

func GetRevokedTime(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetSaleData

func GetSaleData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetStakingStatus

func GetStakingStatus(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetStorageContractAddress

func GetStorageContractAddress(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, merkleHash tlb.Int257, fileSize uint64, client tlb.MsgAddress, torrentHash tlb.Int257) (string, any, error)

func GetStorageContractData

func GetStorageContractData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetStorageParams

func GetStorageParams(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetSubscriptionData added in v1.0.14

func GetSubscriptionData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetSubwalletId

func GetSubwalletId(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetTelemintAuctionConfig added in v1.0.3

func GetTelemintAuctionConfig(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetTelemintAuctionState added in v1.0.3

func GetTelemintAuctionState(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetTelemintTokenName added in v1.0.3

func GetTelemintTokenName(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetTorrentHash

func GetTorrentHash(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetValidatorControllerData added in v1.1.0

func GetValidatorControllerData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetWalletAddress

func GetWalletAddress(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, ownerAddress tlb.MsgAddress) (string, any, error)

func GetWalletData

func GetWalletData(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func GetWalletParams

func GetWalletParams(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func IsActive

func IsActive(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func IsPluginInstalled

func IsPluginInstalled(ctx context.Context, executor Executor, reqAccountID tongo.AccountID, workchain int32, addrHash tlb.Int257) (string, any, error)

func IsWallet

func IsWallet(i ContractInterface) bool

IsWallet returns true if the given interface is one of the wallet interfaces.

func ListNominators

func ListNominators(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func ListVotes

func ListVotes(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func NewContractInspector

func NewContractInspector(opts ...InspectorOption) *contractInspector

func RoyaltyParams

func RoyaltyParams(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

func Seqno

func Seqno(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

Types

type AcceptStorageContractMsgBody

type AcceptStorageContractMsgBody struct {
	QueryId uint64
}

type AccountLists added in v1.0.13

type AccountLists struct {
	List tlb.Hashmap[tlb.Bits256, tlb.Any]
}

type ChallengeQuarantinedChannelStateMsgBody

type ChallengeQuarantinedChannelStateMsgBody struct {
	ChallengedByA bool
	Signature     tlb.Bits512
	Tag           uint32
	ChannelId     tlb.Uint128
	SchA          tlb.Ref[SignedSemiChannel]
	SchB          tlb.Ref[SignedSemiChannel]
}

type ChannelClosedMsgBody

type ChannelClosedMsgBody struct {
	ChannelId tlb.Uint128
}

type ChannelCooperativeCloseMsgBody

type ChannelCooperativeCloseMsgBody struct {
	SigA      tlb.Ref[tlb.Bits512]
	SigB      tlb.Ref[tlb.Bits512]
	Tag       uint32
	ChannelId tlb.Uint128
	BalanceA  tlb.Grams
	BalanceB  tlb.Grams
	SeqnoA    uint64
	SeqnoB    uint64
}

type ChannelCooperativeCommitMsgBody

type ChannelCooperativeCommitMsgBody struct {
	SigA      tlb.Ref[tlb.Bits512]
	SigB      tlb.Ref[tlb.Bits512]
	Tag       uint32
	ChannelId tlb.Uint128
	SeqnoA    uint64
	SeqnoB    uint64
}

type CloseStorageContractMsgBody

type CloseStorageContractMsgBody struct {
	QueryId uint64
}

type ClosingConfig

type ClosingConfig struct {
	QuarantinDuration        uint32
	MisbehaviorFine          tlb.Grams
	ConditionalCloseDuration uint32
}

type ConditionalPayment

type ConditionalPayment struct {
	Amount    tlb.Grams
	Condition tlb.Any
}

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 (
	Auction             ContractInterface = "auction"
	Domain              ContractInterface = "domain"
	NftEditable         ContractInterface = "nft_editable"
	NftSale             ContractInterface = "nft_sale"
	NftSaleGetgems      ContractInterface = "nft_sale_getgems"
	PaymentChannel      ContractInterface = "payment_channel"
	Pool                ContractInterface = "pool"
	StorageContract     ContractInterface = "storage_contract"
	StorageProvider     ContractInterface = "storage_provider"
	Subscription        ContractInterface = "subscription"
	Telemint            ContractInterface = "telemint"
	Tep62Collection     ContractInterface = "tep62_collection"
	Tep62Item           ContractInterface = "tep62_item"
	Tep66               ContractInterface = "tep66"
	Tep74               ContractInterface = "tep74"
	Tep85               ContractInterface = "tep85"
	TfNominator         ContractInterface = "tf_nominator"
	ValidatorController ContractInterface = "validator_controller"
	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 DeployStorageContractMsgBody

type DeployStorageContractMsgBody struct {
	QueryId         uint64
	Info            tlb.Ref[TorrentInfo]
	MerkleHash      tlb.Bits256
	ExpectedRate    tlb.Grams
	ExpectedMaxSpan uint32
}

type Dnsresolve_RecordsResult

type Dnsresolve_RecordsResult struct {
	ResolvedBits int64
	Result       tlb.DNSRecordSet
}

type ExcessMsgBody

type ExcessMsgBody struct {
	QueryId uint64
}

type Executor

type Executor interface {
	RunSmcMethodByID(ctx context.Context, accountID tongo.AccountID, methodID int, params tlb.VmStack) (uint32, tlb.VmStack, error)
}

type FinishUncooperativeChannelCloseMsgBody

type FinishUncooperativeChannelCloseMsgBody struct{}

type GetAuctionInfoResult added in v1.0.14

type GetAuctionInfoResult struct {
	MaxBidAddress  tlb.MsgAddress
	MaxBidAmount   uint64
	AuctionEndTime uint64
}

type GetAuthorityAddressResult

type GetAuthorityAddressResult struct {
	Address tlb.MsgAddress
}

type GetChannelStateResult

type GetChannelStateResult struct {
	State uint64
}

type GetCollectionDataResult

type GetCollectionDataResult struct {
	NextItemIndex     tlb.Int257
	CollectionContent tlb.Any
	OwnerAddress      tlb.MsgAddress
}

type GetDomainResult added in v1.0.14

type GetDomainResult struct {
	Domain string
}

type GetEditorResult added in v1.0.14

type GetEditorResult struct {
	Editor tlb.MsgAddress
}

type GetFullDomainResult added in v1.0.14

type GetFullDomainResult struct {
	Domain string
}

func (GetFullDomainResult) EscapedDomain added in v1.0.14

func (res GetFullDomainResult) EscapedDomain() string

type GetJettonDataResult

type GetJettonDataResult struct {
	TotalSupply      tlb.Int257
	Mintable         int8
	AdminAddress     tlb.MsgAddress
	JettonContent    tlb.Any
	JettonWalletCode tlb.Any
}

type GetLastFillUpTimeResult added in v1.0.14

type GetLastFillUpTimeResult struct {
	LastFillUpTime uint64
}

type GetMember_WhalesNominatorResult added in v1.0.4

type GetMember_WhalesNominatorResult struct {
	MemberBalance         int64
	MemberPendingDeposit  int64
	MemberPendingWithdraw int64
	MemberWithdraw        int64
}

type GetMembersRaw_WhalesNominatorResult added in v1.0.4

type GetMembersRaw_WhalesNominatorResult struct {
	Members WhalesNominatorsMembersList
}

type GetNextProofInfoResult

type GetNextProofInfoResult struct {
	NextProof     uint64
	LastProofTime uint32
	MaxSpan       uint32
}

type GetNftAddressByIndexResult

type GetNftAddressByIndexResult struct {
	Address tlb.MsgAddress
}

type GetNftContentResult

type GetNftContentResult struct {
	Content tlb.FullContent
}

type GetNftDataResult

type GetNftDataResult struct {
	Init              bool
	Index             tlb.Int257
	CollectionAddress tlb.MsgAddress
	OwnerAddress      tlb.MsgAddress
	IndividualContent tlb.Any
}

type GetParams_WhalesNominatorResult

type GetParams_WhalesNominatorResult struct {
	Enabled        bool
	UpdatesEnables bool
	MinStake       int64
	DepositFee     int64
	WithdrawFee    int64
	PoolFee        int64
	ReceiptPrice   int64
}

type GetPluginListResult

type GetPluginListResult struct {
	Plugins []struct {
		Workchain int32
		Address   tlb.Bits256
	}
}

type GetPoolCurrentRoundDepositMinterResult added in v1.1.0

type GetPoolCurrentRoundDepositMinterResult struct {
	DepositMinter tlb.MsgAddress
}

type GetPoolCurrentRoundWithdrawalMinterResult added in v1.1.0

type GetPoolCurrentRoundWithdrawalMinterResult struct {
	DepositMinter tlb.MsgAddress
}

type GetPoolData_TfResult added in v1.0.5

type GetPoolData_TfResult struct {
	State                    int8
	NominatorsCount          uint32
	StakeAmountSent          int64
	ValidatorAmount          int64
	ValidatorAddress         tlb.Bits256
	ValidatorRewardShare     uint32
	MaxNominatorsCount       uint32
	MinValidatorStake        int64
	MinNominatorStake        int64
	Nominators               tlb.Any
	WithdrawRequests         *AccountLists
	StakeAt                  uint32
	SavedValidatorSetHash    tlb.Bits256
	ValidatorSetChangesCount uint32
	ValidatorSetChangeTime   uint32
	StakeHeldFor             uint32
	ConfigProposalVotings    []struct {
	}
}

type GetPoolFinanceDataResult added in v1.1.0

type GetPoolFinanceDataResult struct {
	TotalBalance           int32
	Supply                 int32
	RequestedForDeposit    int32
	RequestedForWithdrawal int32
}

type GetPoolStatusResult

type GetPoolStatusResult struct {
	Balance                int64
	BalanceSent            int64
	BalancePendingDeposits int64
	BalancePendingWithdraw int64
	BalanceWithdraw        int64
}

type GetPublicKeyResult

type GetPublicKeyResult struct {
	PublicKey tlb.Int257
}

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 GetStakingStatusResult struct {
	StakeAt             uint32
	StakeUntil          uint32
	StakeSent           uint64
	QuerySent           bool
	CouldUnlock         bool
	Locked              bool
	ProxyStakeLockFinal bool
}

type GetStaticDataMsgBody

type GetStaticDataMsgBody struct {
	QueryId uint64
}

type GetStorageContractAddressResult

type GetStorageContractAddressResult struct {
	StorageContractAddress tlb.MsgAddress
}

type GetStorageContractDataResult

type GetStorageContractDataResult struct {
	Active        bool
	Balance       uint64
	Provider      tlb.MsgAddress
	MerkleHash    tlb.Int257
	FileSize      uint64
	NextProof     uint64
	RatePerMbDay  uint64
	MaxSpan       uint32
	LastProofTime uint32
	Client        tlb.MsgAddress
	TorrentHash   tlb.Int257
}

type GetStorageParamsResult

type GetStorageParamsResult struct {
	AcceptNewContracts bool
	RatePerMbDay       uint64
	MaxSpan            uint32
	MinimalFileSize    uint64
	MaximalFileSize    uint64
}

type GetSubscriptionDataResult added in v1.0.14

type GetSubscriptionDataResult struct {
	Wallet struct {
		Workchain uint32
		Address   tlb.Bits256
	}

	Beneficiary struct {
		Workchain uint32
		Address   tlb.Bits256
	}

	Amount          uint64
	Period          uint64
	StartTime       uint64
	Timeout         uint64
	LastPaymentTime uint64
	LastRequestTime uint64
	FailedAttempts  uint32
	SubscriptionId  uint64
}

type GetSubwalletIdResult

type GetSubwalletIdResult struct {
	SubwalletId uint32
}

type GetTelemintAuctionConfigResult added in v1.0.3

type GetTelemintAuctionConfigResult struct {
	Beneficiar    tlb.MsgAddress
	InitialMinBid int64
	MaxBid        int64
	MinBidStep    int64
	MinExtendTime int64
	Duration      int64
}

type GetTelemintAuctionStateResult added in v1.0.3

type GetTelemintAuctionStateResult struct {
	Bidder  tlb.MsgAddress
	Bid     int64
	BidTs   int64
	MinBid  int64
	EndTime int64
}

type GetTelemintTokenNameResult added in v1.0.3

type GetTelemintTokenNameResult struct {
	Beneficiar tlb.Text
}

type GetTorrentHashResult

type GetTorrentHashResult struct {
	TorrentHash tlb.Int257
}

type GetValidatorControllerDataResult added in v1.1.0

type GetValidatorControllerDataResult struct {
	State                    int32
	Approved                 bool
	StakeAmountSent          int32
	StakeAt                  int32
	SavedValidatorSetHash    int32
	ValidatorSetChangesCount int32
	ValidatorSetChangeTime   int32
	StakeHeldFor             int32
	BorrowedAmount           int32
	BorrowingTime            int32
}

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 GetWalletParamsResult struct {
	Seqno     uint32
	Subwallet uint32
	PublicKey tlb.Int257
}

type InitPaymentChannelMsgBody

type InitPaymentChannelMsgBody struct {
	IsA       bool
	Signature tlb.Bits512
	Tag       uint32
	ChannelId tlb.Uint128
	BalanceA  tlb.Grams
	BalanceB  tlb.Grams
}

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 InvokeFn

type InvokeFn func(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error)

type IsActiveResult

type IsActiveResult struct {
	IsActive bool
}

type IsPluginInstalledResult

type IsPluginInstalledResult struct {
	Success bool
}

type JettonBurnMsgBody

type JettonBurnMsgBody struct {
	QueryId             uint64
	Amount              tlb.VarUInteger16
	ResponseDestination tlb.MsgAddress
	CustomPayload       tlb.Maybe[tlb.Ref[tlb.Any]]
}

type JettonInternalTransferMsgBody

type JettonInternalTransferMsgBody struct {
	QueryId          uint64
	Amount           tlb.VarUInteger16
	From             tlb.MsgAddress
	ResponseAddress  tlb.MsgAddress
	ForwardTonAmount tlb.VarUInteger16
}

type JettonNotifyMsgBody added in v1.0.8

type JettonNotifyMsgBody struct {
	QueryId        uint64
	Amount         tlb.VarUInteger16
	Sender         tlb.MsgAddress
	ForwardPayload tlb.EitherRef[tlb.Any]
}

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 ListNominatorsResult struct {
	Nominators []struct {
		Address              tlb.Bits256
		Amount               uint64
		PendingDepositAmount uint64
		WithdrawRequested    bool
	}
}

type ListVotesResult

type ListVotesResult struct {
	Votes []struct {
		ProposalHash   tlb.Bits256
		VoteCreateTime uint32
	}
}

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 MethodInvocation struct {
	Result   any
	TypeHint string
}

type MsgOpName added in v1.0.15

type MsgOpName = string

MsgOpName is a human-friendly name for a message's operation which is identified by the first 4 bytes of the message's body.

const (
	TextCommentMsgOp                           MsgOpName = "TextComment"
	ProveOwnershipMsgOp                        MsgOpName = "ProveOwnership"
	NftOwnershipAssignedMsgOp                  MsgOpName = "NftOwnershipAssigned"
	OwnershipProofMsgOp                        MsgOpName = "OwnershipProof"
	ChallengeQuarantinedChannelStateMsgOp      MsgOpName = "ChallengeQuarantinedChannelState"
	SbtOwnerInfoMsgOp                          MsgOpName = "SbtOwnerInfo"
	InitPaymentChannelMsgOp                    MsgOpName = "InitPaymentChannel"
	JettonTransferMsgOp                        MsgOpName = "JettonTransfer"
	OfferStorageContractMsgOp                  MsgOpName = "OfferStorageContract"
	TonstakeControllerPoolHaltMsgOp            MsgOpName = "TonstakeControllerPoolHalt"
	TonstakeControllerCreditMsgOp              MsgOpName = "TonstakeControllerCredit"
	JettonInternalTransferMsgOp                MsgOpName = "JettonInternalTransfer"
	SbtDestroyMsgOp                            MsgOpName = "SbtDestroy"
	StartUncooperativeChannelCloseMsgOp        MsgOpName = "StartUncooperativeChannelClose"
	FinishUncooperativeChannelCloseMsgOp       MsgOpName = "FinishUncooperativeChannelClose"
	TonstakeControllerPoolSendMessageMsgOp     MsgOpName = "TonstakeControllerPoolSendMessage"
	TeleitemDeployMsgOp                        MsgOpName = "TeleitemDeploy"
	GetStaticDataMsgOp                         MsgOpName = "GetStaticData"
	TonstakePoolWithdrawMsgOp                  MsgOpName = "TonstakePoolWithdraw"
	TeleitemCancelAuctionMsgOp                 MsgOpName = "TeleitemCancelAuction"
	ProofStorageMsgOp                          MsgOpName = "ProofStorage"
	TonstakeControllerSendRequestLoanMsgOp     MsgOpName = "TonstakeControllerSendRequestLoan"
	TelemintDeployMsgOp                        MsgOpName = "TelemintDeploy"
	TelemintDeployV2MsgOp                      MsgOpName = "TelemintDeployV2"
	StorageWithdrawMsgOp                       MsgOpName = "StorageWithdraw"
	TonstakePoolDepositMsgOp                   MsgOpName = "TonstakePoolDeposit"
	TeleitemStartAuctionMsgOp                  MsgOpName = "TeleitemStartAuction"
	UpdatePubkeyMsgOp                          MsgOpName = "UpdatePubkey"
	UpdateStorageParamsMsgOp                   MsgOpName = "UpdateStorageParams"
	ChannelCooperativeCloseMsgOp               MsgOpName = "ChannelCooperativeClose"
	JettonBurnMsgOp                            MsgOpName = "JettonBurn"
	NftTransferMsgOp                           MsgOpName = "NftTransfer"
	WalletPluginDestructMsgOp                  MsgOpName = "WalletPluginDestruct"
	SettleChannelConditionalsMsgOp             MsgOpName = "SettleChannelConditionals"
	TopUpChannelBalanceMsgOp                   MsgOpName = "TopUpChannelBalance"
	GetRoyaltyParamsMsgOp                      MsgOpName = "GetRoyaltyParams"
	SbtRevokeMsgOp                             MsgOpName = "SbtRevoke"
	PaymentRequestMsgOp                        MsgOpName = "PaymentRequest"
	TonstakeControllerPoolUnhaltMsgOp          MsgOpName = "TonstakeControllerPoolUnhalt"
	JettonNotifyMsgOp                          MsgOpName = "JettonNotify"
	SubscriptionPaymentMsgOp                   MsgOpName = "SubscriptionPayment"
	ChannelCooperativeCommitMsgOp              MsgOpName = "ChannelCooperativeCommit"
	TonstakeControllerPoolSetSudoerMsgOp       MsgOpName = "TonstakeControllerPoolSetSudoer"
	CloseStorageContractMsgOp                  MsgOpName = "CloseStorageContract"
	AcceptStorageContractMsgOp                 MsgOpName = "AcceptStorageContract"
	TonstakePoolSetRolesMsgOp                  MsgOpName = "TonstakePoolSetRoles"
	TonstakeControllerApproveMsgOp             MsgOpName = "TonstakeControllerApprove"
	WhalesNominatorsDepositMsgOp               MsgOpName = "WhalesNominatorsDeposit"
	ReportStaticDataMsgOp                      MsgOpName = "ReportStaticData"
	TonstakeControllerPoolUpgradeMsgOp         MsgOpName = "TonstakeControllerPoolUpgrade"
	ReportRoyaltyParamsMsgOp                   MsgOpName = "ReportRoyaltyParams"
	StorageRewardWithdrawalMsgOp               MsgOpName = "StorageRewardWithdrawal"
	StorageContractTerminatedMsgOp             MsgOpName = "StorageContractTerminated"
	TonstakeControllerWithdrawValidatorMsgOp   MsgOpName = "TonstakeControllerWithdrawValidator"
	SbtRequestOwnerMsgOp                       MsgOpName = "SbtRequestOwner"
	TonstakeControllerTopUpMsgOp               MsgOpName = "TonstakeControllerTopUp"
	StorageContractConfirmedMsgOp              MsgOpName = "StorageContractConfirmed"
	ExcessMsgOp                                MsgOpName = "Excess"
	WhalesNominatorsWithdrawMsgOp              MsgOpName = "WhalesNominatorsWithdraw"
	ChannelClosedMsgOp                         MsgOpName = "ChannelClosed"
	TonstakePoolLoanRepaymentMsgOp             MsgOpName = "TonstakePoolLoanRepayment"
	TonstakeControllerNewStakeMsgOp            MsgOpName = "TonstakeControllerNewStake"
	WalletPluginDestructResponseMsgOp          MsgOpName = "WalletPluginDestructResponse"
	DeployStorageContractMsgOp                 MsgOpName = "DeployStorageContract"
	TonstakeControllerDisapproveMsgOp          MsgOpName = "TonstakeControllerDisapprove"
	TonstakeControllerRecoverStakeMsgOp        MsgOpName = "TonstakeControllerRecoverStake"
	TonstakeControllerReturnUnusedLoanMsgOp    MsgOpName = "TonstakeControllerReturnUnusedLoan"
	PaymentRequestResponseMsgOp                MsgOpName = "PaymentRequestResponse"
	TonstakeControllerUpdateValidatorHashMsgOp MsgOpName = "TonstakeControllerUpdateValidatorHash"
)

func MessageDecoder

func MessageDecoder(cell *boc.Cell) (MsgOpName, any, error)

MessageDecoder takes in a message body as a cell and tries to decode it based on the first 4 bytes. On success, it returns an operation name and a decoded body.

type NftOwnershipAssignedMsgBody

type NftOwnershipAssignedMsgBody struct {
	QueryId        uint64
	PrevOwner      tlb.MsgAddress
	ForwardPayload tlb.EitherRef[tlb.Any]
}

type NftRoyaltyParams

type NftRoyaltyParams struct {
	Numerator   uint16
	Denominator uint16
	Destination tlb.MsgAddress
}

type NftTransferMsgBody

type NftTransferMsgBody struct {
	QueryId             uint64
	NewOwner            tlb.MsgAddress
	ResponseDestination tlb.MsgAddress
	CustomPayload       tlb.Maybe[tlb.Ref[tlb.Any]]
	ForwardAmount       tlb.VarUInteger16
	ForwardPayload      tlb.EitherRef[tlb.Any]
}

type OfferStorageContractMsgBody

type OfferStorageContractMsgBody struct {
	QueryId uint64
}

type OwnershipProofMsgBody

type OwnershipProofMsgBody struct {
	QueryId   uint64
	ItemId    tlb.Uint256
	Owner     tlb.MsgAddress
	Data      tlb.Ref[tlb.Any]
	RevokedAt uint64
	Content   tlb.Maybe[tlb.Ref[tlb.Any]]
}

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{}

type ProofStorageMsgBody

type ProofStorageMsgBody struct {
	QueryId       uint64
	FileDictProof tlb.Ref[tlb.Any]
}

type ProveOwnershipMsgBody

type ProveOwnershipMsgBody struct {
	QueryId        uint64
	Dest           tlb.MsgAddress
	ForwardPayload tlb.Ref[tlb.Any]
	WithContent    bool
}

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 SbtOwnerInfoMsgBody struct {
	QueryId   uint64
	ItemId    tlb.Uint256
	Initiator tlb.MsgAddress
	Owner     tlb.MsgAddress
	Data      tlb.Ref[tlb.Any]
	RevokedAt uint64
	Content   tlb.Maybe[tlb.Ref[tlb.Any]]
}

type SbtRequestOwnerMsgBody

type SbtRequestOwnerMsgBody struct {
	QueryId        uint64
	Dest           tlb.MsgAddress
	ForwardPayload tlb.Ref[tlb.Any]
	WithContent    bool
}

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 SemiChannelBody struct {
	Seqno        uint64
	Sent         tlb.Grams
	Conditionals tlb.HashmapE[tlb.Uint32, ConditionalPayment]
}

type SeqnoResult

type SeqnoResult struct {
	State uint32
}

type SettleChannelConditionalsMsgBody

type SettleChannelConditionalsMsgBody struct {
	FromA                bool
	Signature            tlb.Bits512
	Tag                  uint32
	ChannelId            tlb.Uint128
	ConditionalsToSettle tlb.HashmapE[tlb.Uint32, tlb.Any]
}

type SignedSemiChannel

type SignedSemiChannel struct {
	Signature tlb.Bits512
	State     SemiChannel
}

type StartUncooperativeChannelCloseMsgBody

type StartUncooperativeChannelCloseMsgBody struct {
	SignedByA bool
	Signature tlb.Bits512
	Tag       uint32
	ChannelId tlb.Uint128
	SchA      tlb.Ref[SignedSemiChannel]
	SchB      tlb.Ref[SignedSemiChannel]
}

type Storage

type Storage struct {
	BalanceA       tlb.Grams
	BalanceB       tlb.Grams
	KeyA           tlb.Uint256
	KeyB           tlb.Uint256
	ChannelId      tlb.Uint128
	Config         tlb.Ref[ClosingConfig]
	CommitedSeqnoA uint32
	CommitedSeqnoB uint32
	Quarantin      tlb.Maybe[tlb.Ref[QuarantinedState]]
	Payments       tlb.Ref[PaymentConfig]
}

type StorageContractConfirmedMsgBody

type StorageContractConfirmedMsgBody struct {
	CurLt       uint64
	TorrentHash tlb.Bits256
}

type StorageContractTerminatedMsgBody

type StorageContractTerminatedMsgBody struct {
	CurLt       uint64
	TorrentHash tlb.Bits256
}

type StorageRewardWithdrawalMsgBody

type StorageRewardWithdrawalMsgBody struct {
	QueryId uint64
}

type StorageWithdrawMsgBody

type StorageWithdrawMsgBody struct {
	QueryId uint64
}

type SubscriptionPaymentMsgBody added in v1.0.14

type SubscriptionPaymentMsgBody struct{}

type TeleitemAuctionConfig

type TeleitemAuctionConfig struct {
	BeneficiarAddress tlb.MsgAddress
	InitialMinBid     tlb.Grams
	MaxBid            tlb.Grams
	MinBidStep        uint8
	MinExtendTime     uint32
	Duration          uint32
}

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 TelemintData struct {
	Touched           bool
	SubwalletId       uint32
	PublicKey         tlb.Bits256
	CollectionContent tlb.Ref[tlb.Any]
	NftItemCode       tlb.Ref[tlb.Any]
	RoyaltyParams     tlb.Ref[NftRoyaltyParams]
}

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 TelemintUnsignedDeploy struct {
	SubwalletId   uint32
	ValidSince    uint32
	ValidTill     uint32
	Username      tlb.FixedLengthText
	Content       tlb.Ref[tlb.Any]
	AuctionConfig tlb.Ref[TeleitemAuctionConfig]
	RoyaltyParams tlb.Maybe[tlb.Ref[NftRoyaltyParams]]
}

type TelemintUnsignedDeployV2

type TelemintUnsignedDeployV2 struct {
	SubwalletId   uint32
	ValidSince    uint32
	ValidTill     uint32
	TokenName     tlb.FixedLengthText
	Content       tlb.Ref[tlb.Any]
	AuctionConfig tlb.Ref[TeleitemAuctionConfig]
	RoyaltyParams tlb.Maybe[tlb.Ref[NftRoyaltyParams]]
	Restrictions  tlb.Maybe[tlb.Ref[TelemintRestrictions]]
}

type TextCommentMsgBody

type TextCommentMsgBody struct {
	Text tlb.Text
}

type TonstakeControllerApproveMsgBody added in v1.1.0

type TonstakeControllerApproveMsgBody struct {
	QueryId uint64
}

type TonstakeControllerCreditMsgBody added in v1.1.0

type TonstakeControllerCreditMsgBody struct {
	QueryId uint64
	Amount  tlb.Grams
}

type TonstakeControllerDisapproveMsgBody added in v1.1.0

type TonstakeControllerDisapproveMsgBody struct {
	QueryId uint64
}

type TonstakeControllerNewStakeMsgBody added in v1.1.0

type TonstakeControllerNewStakeMsgBody struct {
	QueryId         uint64
	Value           tlb.Grams
	ValidatorPubkey tlb.Uint256
	StakeAt         uint32
	MaxFactor       uint32
	AdnlAddr        tlb.Uint256
	Signature       tlb.Ref[tlb.Bits512]
}

type TonstakeControllerPoolHaltMsgBody added in v1.1.0

type TonstakeControllerPoolHaltMsgBody struct {
	QueryId uint64
}

type TonstakeControllerPoolSendMessageMsgBody added in v1.1.0

type TonstakeControllerPoolSendMessageMsgBody struct {
	QueryId uint64
	Mode    uint8
	Msg     tlb.Ref[tlb.Any]
}

type TonstakeControllerPoolSetSudoerMsgBody added in v1.1.0

type TonstakeControllerPoolSetSudoerMsgBody struct {
	QueryId uint64
	Sudoer  tlb.MsgAddress
}

type TonstakeControllerPoolUnhaltMsgBody added in v1.1.0

type TonstakeControllerPoolUnhaltMsgBody struct {
	QueryId uint64
}

type TonstakeControllerPoolUpgradeMsgBody added in v1.1.0

type TonstakeControllerPoolUpgradeMsgBody struct {
	QueryId      uint64
	Data         tlb.Maybe[tlb.Ref[tlb.Any]]
	Code         tlb.Maybe[tlb.Ref[tlb.Any]]
	AfterUpgrade tlb.Maybe[tlb.Ref[tlb.Any]]
}

type TonstakeControllerRecoverStakeMsgBody added in v1.1.0

type TonstakeControllerRecoverStakeMsgBody struct {
	QueryId uint64
}

type TonstakeControllerReturnUnusedLoanMsgBody added in v1.1.0

type TonstakeControllerReturnUnusedLoanMsgBody struct {
	QueryId uint64
}

type TonstakeControllerSendRequestLoanMsgBody added in v1.1.0

type TonstakeControllerSendRequestLoanMsgBody struct {
	QueryId    uint64
	MinLoan    tlb.Grams
	MaxLoan    tlb.Grams
	MaxInterst tlb.Uint18
}

type TonstakeControllerTopUpMsgBody added in v1.1.0

type TonstakeControllerTopUpMsgBody struct {
	QueryId uint64
}

type TonstakeControllerUpdateValidatorHashMsgBody added in v1.1.0

type TonstakeControllerUpdateValidatorHashMsgBody struct {
	QueryId uint64
}

type TonstakeControllerWithdrawValidatorMsgBody added in v1.1.0

type TonstakeControllerWithdrawValidatorMsgBody struct {
	QueryId uint64
}

type TonstakePoolDepositMsgBody added in v1.1.0

type TonstakePoolDepositMsgBody struct {
	QueryId uint64
}

type TonstakePoolLoanRepaymentMsgBody added in v1.1.0

type TonstakePoolLoanRepaymentMsgBody struct {
	QueryId uint64
}

type TonstakePoolSetRolesMsgBody added in v1.1.0

type TonstakePoolSetRolesMsgBody struct {
	Governor        tlb.Maybe[tlb.MsgAddress]
	InterestManager tlb.Maybe[tlb.MsgAddress]
	Halter          tlb.Maybe[tlb.MsgAddress]
	Consigliere     tlb.Maybe[tlb.MsgAddress]
}

type TonstakePoolWithdrawMsgBody added in v1.1.0

type TonstakePoolWithdrawMsgBody struct {
	QueryId         uint64
	JettonAmount    tlb.Grams
	FromAddress     tlb.MsgAddress
	ResponseAddress tlb.MsgAddress
}

type TopUpChannelBalanceMsgBody

type TopUpChannelBalanceMsgBody struct {
	AddA tlb.Grams
	AddB tlb.Grams
}

type TorrentInfo

type TorrentInfo struct {
	PieceSize      uint32
	FileSize       uint64
	RootHash       tlb.Uint256
	HeaderSize     uint64
	HeaderHash     tlb.Uint256
	MicrochunkHash tlb.Maybe[tlb.Uint256]
	Description    tlb.Text
}

type UpdatePubkeyMsgBody

type UpdatePubkeyMsgBody struct {
	QueryId   uint64
	NewPubkey tlb.Bits256
}

type UpdateStorageParamsMsgBody

type UpdateStorageParamsMsgBody struct {
	QueryId            uint64
	AcceptNewContracts bool
	RatePerMbDay       tlb.Grams
	MaxSpan            uint32
	MinimalFileSize    uint64
	MaximalFileSize    uint64
}

type WalletPluginDestructMsgBody

type WalletPluginDestructMsgBody struct{}

type WalletPluginDestructResponseMsgBody

type WalletPluginDestructResponseMsgBody struct{}

type WhalesNominatorsDepositMsgBody added in v1.0.4

type WhalesNominatorsDepositMsgBody struct {
	QueryId int64
	Gas     tlb.Grams
}

type WhalesNominatorsMember added in v1.0.4

type WhalesNominatorsMember struct {
	ProfitPerCoin      tlb.Int128
	Balance            tlb.Grams
	PendingWithdraw    tlb.Grams
	PendingWithdrawAll bool
	PendingDeposit     tlb.Grams
	MemberWithdraw     tlb.Grams
}

type WhalesNominatorsMembersList added in v1.0.4

type WhalesNominatorsMembersList struct {
	List tlb.Hashmap[tlb.Bits256, WhalesNominatorsMember]
}

type WhalesNominatorsWithdrawMsgBody added in v1.0.4

type WhalesNominatorsWithdrawMsgBody struct {
	QueryId int64
	Gas     tlb.Grams
	Amount  tlb.Grams
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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