abi

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 7 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KnownSimpleGetMethods = map[int][]func(ctx context.Context, executor Executor, reqAccountID tongo.AccountID) (string, any, error){
	69506:  {GetTelemintTokenName},
	71463:  {GetTorrentHash},
	72748:  {GetSaleData},
	78748:  {GetPublicKey},
	81467:  {GetSubwalletId},
	81490:  {GetNextProofInfo},
	84760:  {GetAuthorityAddress},
	85143:  {Seqno},
	85719:  {RoyaltyParams},
	86593:  {GetStorageContractData},
	97026:  {GetWalletData},
	97667:  {GetRevokedTime},
	102351: {GetNftData},
	102491: {GetCollectionData},
	104346: {GetStorageParams},
	106029: {GetJettonData},
	106901: {GetChannelState},
	107653: {GetPluginList},
	111161: {ListNominators},
	115150: {GetParams},
	120146: {GetPoolStatus},
	122058: {IsActive},
	122498: {GetTelemintAuctionState},
	123928: {GetStakingStatus},
	127654: {GetMembers},
	129619: {GetTelemintAuctionConfig},
	130271: {GetWalletParams},
	130309: {ListVotes},
}

Functions

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 GetMembers

func GetMembers(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 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_RecordResult

type Dnsresolve_RecordResult struct {
	ResolvedBits int64
	Result       tlb.DNSRecord
}

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 GetMembers_WhalesNominatorResult

type GetMembers_WhalesNominatorResult struct {
	Members []struct {
		Address               tlb.MsgAddress
		MemberBalance         int64
		MemberPendingDeposit  int64
		MemberPendingWithdraw int64
		MemberWithdraw        int64
	}
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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