Documentation ¶
Index ¶
- Variables
- func RootContractAddr(api TonApi) (*address.Address, error)
- type Client
- type Domain
- func (d *Domain) BuildSetRecordPayload(name string, value *cell.Cell) *cell.Cell
- func (d *Domain) BuildSetSiteRecordPayload(addr []byte, isStorage bool) *cell.Cell
- func (d *Domain) BuildSetWalletRecordPayload(addr *address.Address) *cell.Cell
- func (d *Domain) GetRecord(name string) *cell.Cell
- func (d *Domain) GetSiteRecord() (_ []byte, inStorage bool)
- func (d *Domain) GetWalletRecord() *address.Address
- type TonApi
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSuchRecord = fmt.Errorf("no such dns record")
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ResolveAtBlock ¶ added in v1.4.0
type Domain ¶
type Domain struct { Records *cell.Dictionary *nft.ItemEditableClient }
func (*Domain) BuildSetRecordPayload ¶ added in v1.5.0
func (*Domain) BuildSetSiteRecordPayload ¶ added in v1.5.0
func (*Domain) BuildSetWalletRecordPayload ¶ added in v1.5.0
func (*Domain) GetSiteRecord ¶ added in v1.5.0
func (*Domain) GetWalletRecord ¶
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) GetBlockchainConfig(ctx context.Context, block *ton.BlockIDExt, onlyParams ...int32) (*ton.BlockchainConfig, error) }
Click to show internal directories.
Click to hide internal directories.