abi

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 7 Imported by: 20

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_jetton_data":              {DecodeGetJettonDataResult},
	"get_wallet_address":           {DecodeGetWalletAddressResult},
	"get_wallet_data":              {DecodeGetWalletDataResult},
	"dnsresolve":                   {DecodeDnsresolve_RecordsResult},
	"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},
}
View Source
var KnownMsgTypes = map[string]any{
	"TextComment":                      TextCommentMsgBody{},
	"ProveOwnership":                   ProveOwnershipMsgBody{},
	"NftOwnershipAssigned":             NftOwnershipAssignedMsgBody{},
	"OwnershipProof":                   OwnershipProofMsgBody{},
	"ChallengeQuarantinedChannelState": ChallengeQuarantinedChannelStateMsgBody{},
	"SbtOwnerInfo":                     SbtOwnerInfoMsgBody{},
	"InitPaymentChannel":               InitPaymentChannelMsgBody{},
	"JettonTransfer":                   JettonTransferMsgBody{},
	"OfferStorageContract":             OfferStorageContractMsgBody{},
	"JettonInternalTransfer":           JettonInternalTransferMsgBody{},
	"SbtDestroy":                       SbtDestroyMsgBody{},
	"StartUncooperativeChannelClose":   StartUncooperativeChannelCloseMsgBody{},
	"FinishUncooperativeChannelClose":  FinishUncooperativeChannelCloseMsgBody{},
	"TeleitemDeploy":                   TeleitemDeployMsgBody{},
	"GetStaticData":                    GetStaticDataMsgBody{},
	"TeleitemCancelAuction":            TeleitemCancelAuctionMsgBody{},
	"ProofStorage":                     ProofStorageMsgBody{},
	"TelemintDeploy":                   TelemintDeployMsgBody{},
	"TelemintDeployV2":                 TelemintDeployV2MsgBody{},
	"StorageWithdraw":                  StorageWithdrawMsgBody{},
	"TeleitemStartAuction":             TeleitemStartAuctionMsgBody{},
	"UpdatePubkey":                     UpdatePubkeyMsgBody{},
	"UpdateStorageParams":              UpdateStorageParamsMsgBody{},
	"ChannelCooperativeClose":          ChannelCooperativeCloseMsgBody{},
	"JettonBurn":                       JettonBurnMsgBody{},
	"NftTransfer":                      NftTransferMsgBody{},
	"WalletPluginDestruct":             WalletPluginDestructMsgBody{},
	"SettleChannelConditionals":        SettleChannelConditionalsMsgBody{},
	"TopUpChannelBalance":              TopUpChannelBalanceMsgBody{},
	"GetRoyaltyParams":                 GetRoyaltyParamsMsgBody{},
	"SbtRevoke":                        SbtRevokeMsgBody{},
	"PaymentRequest":                   PaymentRequestMsgBody{},
	"JettonNotify":                     JettonNotifyMsgBody{},
	"ChannelCooperativeCommit":         ChannelCooperativeCommitMsgBody{},
	"CloseStorageContract":             CloseStorageContractMsgBody{},
	"AcceptStorageContract":            AcceptStorageContractMsgBody{},
	"WhalesNominatorsDeposit":          WhalesNominatorsDepositMsgBody{},
	"ReportStaticData":                 ReportStaticDataMsgBody{},
	"ReportRoyaltyParams":              ReportRoyaltyParamsMsgBody{},
	"StorageRewardWithdrawal":          StorageRewardWithdrawalMsgBody{},
	"StorageContractTerminated":        StorageContractTerminatedMsgBody{},
	"SbtRequestOwner":                  SbtRequestOwnerMsgBody{},
	"StorageContractConfirmed":         StorageContractConfirmedMsgBody{},
	"Excess":                           ExcessMsgBody{},
	"WhalesNominatorsWithdraw":         WhalesNominatorsWithdrawMsgBody{},
	"ChannelClosed":                    ChannelClosedMsgBody{},
	"WalletPluginDestructResponse":     WalletPluginDestructResponseMsgBody{},
	"DeployStorageContract":            DeployStorageContractMsgBody{},
	"PaymentRequestResponse":           PaymentRequestResponseMsgBody{},
}
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},
	81689:  {GetPoolData},
	84760:  {GetAuthorityAddress},
	85143:  {Seqno},
	85719:  {RoyaltyParams},
	86593:  {GetStorageContractData},
	89295:  {GetMembersRaw},
	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},
	129619: {GetTelemintAuctionConfig},
	130271: {GetWalletParams},
	130309: {ListVotes},
}

Functions

func DecodeDnsresolve_RecordsResult added in v1.0.7

func DecodeDnsresolve_RecordsResult(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 DecodeGetJettonDataResult added in v1.0.7

func DecodeGetJettonDataResult(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 DecodeGetPoolData_TfResult added in v1.0.7

func DecodeGetPoolData_TfResult(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 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 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 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 GetJettonData

func GetJettonData(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 GetPoolData added in v1.0.5

func GetPoolData(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 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 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 MessageDecoder

func MessageDecoder(cell *boc.Cell) (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 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 ContentData

type ContentData struct {
	tlb.SumType
	Snake struct {
		Data tlb.SnakeData
	} `tlbSumType:"#00"`
	Chunks struct {
		Data tlb.ChunkedData
	} `tlbSumType:"#01"`
}

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 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 FullContent

type FullContent struct {
	tlb.SumType
	Onchain struct {
		Data tlb.HashmapE[tlb.Bits256, tlb.Ref[ContentData]]
	} `tlbSumType:"#00"`
	Offchain struct {
		Uri tlb.Text
	} `tlbSumType:"#01"`
}

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 GetJettonDataResult

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

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 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 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     []struct {
	}

	StakeAt                  uint32
	SavedValidatorSetHash    tlb.Bits256
	ValidatorSetChangesCount uint32
	ValidatorSetChangeTime   uint32
	StakeHeldFor             uint32
	ConfigProposalVotings    []struct {
	}
}

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

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

type WalletPluginDestructResponseMsgBody

type WalletPluginDestructResponseMsgBody struct {
	QueryId uint64
}

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