Documentation ¶
Index ¶
- type CollectionChangeOwner
- type CollectionClient
- func (c *CollectionClient) BuildMintEditablePayload(index *big.Int, owner, editor *address.Address, amountForward tlb.Coins, ...) (_ *cell.Cell, err error)
- func (c *CollectionClient) BuildMintPayload(index *big.Int, owner *address.Address, amountForward tlb.Coins, ...) (_ *cell.Cell, err error)
- func (c *CollectionClient) GetCollectionData(ctx context.Context) (*CollectionData, error)
- func (c *CollectionClient) GetCollectionDataAtBlock(ctx context.Context, b *ton.BlockIDExt) (*CollectionData, error)
- func (c *CollectionClient) GetNFTAddressByIndex(ctx context.Context, index *big.Int) (*address.Address, error)
- func (c *CollectionClient) GetNFTAddressByIndexAtBlock(ctx context.Context, index *big.Int, b *ton.BlockIDExt) (*address.Address, error)
- func (c *CollectionClient) GetNFTContent(ctx context.Context, index *big.Int, individualNFTContent ContentAny) (ContentAny, error)
- func (c *CollectionClient) GetNFTContentAtBlock(ctx context.Context, index *big.Int, individualNFTContent ContentAny, ...) (ContentAny, error)
- func (c *CollectionClient) RoyaltyParams(ctx context.Context) (*CollectionRoyaltyParams, error)
- func (c *CollectionClient) RoyaltyParamsAtBlock(ctx context.Context, b *ton.BlockIDExt) (*CollectionRoyaltyParams, error)
- type CollectionData
- type CollectionRoyaltyParams
- type ContentAny
- type ContentOffchain
- type ContentOnchain
- func (c *ContentOnchain) ContentCell() (*cell.Cell, error)
- func (c *ContentOnchain) GetAttribute(name string) string
- func (c *ContentOnchain) GetAttributeBinary(name string) []byte
- func (c *ContentOnchain) SetAttribute(name, value string) error
- func (c *ContentOnchain) SetAttributeBinary(name string, value []byte) error
- func (c *ContentOnchain) SetAttributeCell(key string, cl *cell.Cell) error
- type ContentSemichain
- type ItemClient
- func (c *ItemClient) BuildTransferPayload(newOwner *address.Address, amountForward tlb.Coins, payloadForward *cell.Cell, ...) (*cell.Cell, error)
- func (c *ItemClient) GetNFTAddress() *address.Address
- func (c *ItemClient) GetNFTData(ctx context.Context) (*ItemData, error)
- func (c *ItemClient) GetNFTDataAtBlock(ctx context.Context, b *ton.BlockIDExt) (*ItemData, error)
- type ItemData
- type ItemEditPayload
- type ItemEditableClient
- type ItemMintPayload
- type TonApi
- type TransferPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionChangeOwner ¶
type CollectionClient ¶
type CollectionClient struct {
// contains filtered or unexported fields
}
func NewCollectionClient ¶
func NewCollectionClient(api TonApi, collectionAddr *address.Address) *CollectionClient
func (*CollectionClient) BuildMintEditablePayload ¶
func (*CollectionClient) BuildMintPayload ¶
func (*CollectionClient) GetCollectionData ¶
func (c *CollectionClient) GetCollectionData(ctx context.Context) (*CollectionData, error)
func (*CollectionClient) GetCollectionDataAtBlock ¶
func (c *CollectionClient) GetCollectionDataAtBlock(ctx context.Context, b *ton.BlockIDExt) (*CollectionData, error)
func (*CollectionClient) GetNFTAddressByIndex ¶
func (*CollectionClient) GetNFTAddressByIndexAtBlock ¶
func (c *CollectionClient) GetNFTAddressByIndexAtBlock(ctx context.Context, index *big.Int, b *ton.BlockIDExt) (*address.Address, error)
func (*CollectionClient) GetNFTContent ¶
func (c *CollectionClient) GetNFTContent(ctx context.Context, index *big.Int, individualNFTContent ContentAny) (ContentAny, error)
func (*CollectionClient) GetNFTContentAtBlock ¶
func (c *CollectionClient) GetNFTContentAtBlock(ctx context.Context, index *big.Int, individualNFTContent ContentAny, b *ton.BlockIDExt) (ContentAny, error)
func (*CollectionClient) RoyaltyParams ¶
func (c *CollectionClient) RoyaltyParams(ctx context.Context) (*CollectionRoyaltyParams, error)
func (*CollectionClient) RoyaltyParamsAtBlock ¶
func (c *CollectionClient) RoyaltyParamsAtBlock(ctx context.Context, b *ton.BlockIDExt) (*CollectionRoyaltyParams, error)
type CollectionData ¶
type CollectionData struct { NextItemIndex *big.Int Content ContentAny OwnerAddress *address.Address }
type CollectionRoyaltyParams ¶
type ContentAny ¶
func ContentFromCell ¶
func ContentFromCell(c *cell.Cell) (ContentAny, error)
func ContentFromSlice ¶
func ContentFromSlice(s *cell.Slice) (ContentAny, error)
type ContentOffchain ¶
type ContentOffchain struct {
URI string
}
func (*ContentOffchain) ContentCell ¶
func (c *ContentOffchain) ContentCell() (*cell.Cell, error)
type ContentOnchain ¶
type ContentOnchain struct { // Deprecated: use GetAttribute("name") Name string // Deprecated: use GetAttribute("description") Description string // Deprecated: use GetAttribute("image") Image string // Deprecated: use GetAttributeBinary("image_data") ImageData []byte // contains filtered or unexported fields }
func (*ContentOnchain) ContentCell ¶
func (c *ContentOnchain) ContentCell() (*cell.Cell, error)
func (*ContentOnchain) GetAttribute ¶
func (c *ContentOnchain) GetAttribute(name string) string
func (*ContentOnchain) GetAttributeBinary ¶
func (c *ContentOnchain) GetAttributeBinary(name string) []byte
func (*ContentOnchain) SetAttribute ¶
func (c *ContentOnchain) SetAttribute(name, value string) error
func (*ContentOnchain) SetAttributeBinary ¶
func (c *ContentOnchain) SetAttributeBinary(name string, value []byte) error
func (*ContentOnchain) SetAttributeCell ¶
func (c *ContentOnchain) SetAttributeCell(key string, cl *cell.Cell) error
type ContentSemichain ¶
type ContentSemichain struct { ContentOffchain ContentOnchain }
func (*ContentSemichain) ContentCell ¶
func (c *ContentSemichain) ContentCell() (*cell.Cell, error)
type ItemClient ¶
type ItemClient struct {
// contains filtered or unexported fields
}
func NewItemClient ¶
func NewItemClient(api TonApi, nftAddr *address.Address) *ItemClient
func (*ItemClient) BuildTransferPayload ¶
func (*ItemClient) GetNFTAddress ¶
func (c *ItemClient) GetNFTAddress() *address.Address
func (*ItemClient) GetNFTData ¶
func (c *ItemClient) GetNFTData(ctx context.Context) (*ItemData, error)
func (*ItemClient) GetNFTDataAtBlock ¶
func (c *ItemClient) GetNFTDataAtBlock(ctx context.Context, b *ton.BlockIDExt) (*ItemData, error)
type ItemEditPayload ¶
type ItemEditableClient ¶
type ItemEditableClient struct {
*ItemClient
}
func NewItemEditableClient ¶
func NewItemEditableClient(api TonApi, nftAddr *address.Address) *ItemEditableClient
func (*ItemEditableClient) BuildEditPayload ¶
func (c *ItemEditableClient) BuildEditPayload(content ContentAny) (*cell.Cell, error)
func (*ItemEditableClient) GetEditorAtBlock ¶
func (c *ItemEditableClient) GetEditorAtBlock(ctx context.Context, b *ton.BlockIDExt) (*address.Address, error)
type ItemMintPayload ¶
type TonApi ¶
type TonApi interface { WaitForBlock(seqno uint32) ton.APIClientWrapped CurrentMasterchainInfo(ctx context.Context) (_ *ton.BlockIDExt, err error) RunGetMethod(ctx context.Context, blockInfo *ton.BlockIDExt, addr *address.Address, method string, params ...any) (*ton.ExecutionResult, error) }
type TransferPayload ¶
type TransferPayload struct { QueryID uint64 `tlb:"## 64"` NewOwner *address.Address `tlb:"addr"` ResponseDestination *address.Address `tlb:"addr"` CustomPayload *cell.Cell `tlb:"maybe ^"` ForwardAmount tlb.Coins `tlb:"."` ForwardPayload *cell.Cell `tlb:"either . ^"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.