Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DomainRegistry = MainnetDomainRegistry MainnetDomainRegistry = MustParseAddress("KT1GBZmSxmnKJXGMdMLbugPfLyUPmuLSMwKS") GhostnetDomainRegistry = MustParseAddress("KT1REqKBXwULnmU6RpZxnRBUgcBmESnXhCWs") )
View Source
var ( ProfileRegistry = MainnetProfileRegistry MainnetProfileRegistry = MustParseAddress("KT1GBZmSxmnKJXGMdMLbugPfLyUPmuLSMwKS") GhostnetProfileRegistry = MustParseAddress("KT1REqKBXwULnmU6RpZxnRBUgcBmESnXhCWs") )
View Source
var ( NewZ = tezos.NewZ NewToken = tezos.NewToken AddressTypeContract = tezos.AddressTypeContract ParseAddress = tezos.ParseAddress MustParseAddress = tezos.MustParseAddress NewAddress = tezos.NewAddress )
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct { Id uint64 `json:"id"` Domain string `json:"domain"` TokenId int64 `json:"token_id,omitempty"` Level int `json:"level"` Owner string `json:"owner"` ForwardAddress string `json:"forward_address"` ReverseAddress string `json:"reverse_address"` Expiry time.Time `json:"expiry"` Metadata json.RawMessage `json:"metadata,omitempty"` FirstBlock int64 `json:"first_block"` FirstTime time.Time `json:"first_time"` }
type DomainAPI ¶
type DomainAPI interface { LookupByName(context.Context, string) (*Domain, error) LookupByAddress(context.Context, Address) (*Domain, error) // firehose ListDomains(context.Context, Query) ([]*Domain, error) ListEvents(context.Context, Query) ([]*DomainEvent, error) }
func NewDomainAPI ¶
type DomainEvent ¶
type DomainEvent struct { Id uint64 `json:"id"` Type string `json:"event_type"` Domain string `json:"domain"` TokenId int64 `json:"token_id"` Level int `json:"level"` Owner string `json:"owner"` ForwardAddress string `json:"forward_address"` ReverseAddress string `json:"reverse_address"` Expiry time.Time `json:"expiry"` Metadata json.RawMessage `json:"metadata"` Signer string `json:"signer"` Sender string `json:"sender"` TxHash OpHash `json:"tx_hash"` TxFee int64 `json:"tx_fee,string"` Block int64 `json:"block"` Time time.Time `json:"time"` }
type Profile ¶
type Profile struct { Id uint64 `json:"id"` Owner string `json:"owner"` Contract Address `json:"contract"` Alias string `json:"alias"` Description string `json:"description"` Logo string `json:"logo"` Website string `json:"website"` Twitter string `json:"twitter"` Ethereum string `json:"ethereum"` DomainName string `json:"domain_name"` Discord string `json:"discord"` Github string `json:"github"` FirstBlock int64 `json:"first_block"` FirstTime time.Time `json:"first_time"` LastBlock int64 `json:"last_block"` LastTime time.Time `json:"last_time"` UpdateCounter int `json:"update_counter"` AppliedCounter int `json:"applied_counter"` }
type ProfileAPI ¶
type ProfileAPI interface { // firehose ListProfiles(context.Context, Query) ([]*Profile, error) ListEvents(context.Context, Query) ([]*ProfileEvent, error) ListClaims(context.Context, Query) ([]*ProfileClaim, error) }
func NewProfileAPI ¶
func NewProfileAPI(c *client.Client) ProfileAPI
type ProfileClaim ¶
type ProfileClaim struct { Id uint64 `json:"id"` Url string `json:"url"` Owner string `json:"owner"` Contract string `json:"contract"` Profile uint64 `json:"profile_id"` Signature HexBytes `json:"signature"` Data json.RawMessage `json:"data,omitempty"` Status string `json:"status"` Counter int `json:"counter"` RevokeCounter int `json:"revoke_counter,omitempty"` IsRevoked bool `json:"is_revoked,omitempty"` Block int64 `json:"block"` Time time.Time `json:"time"` }
type ProfileEvent ¶
type ProfileEvent struct { Id uint64 `json:"id"` Type string `json:"event_type"` Owner string `json:"owner"` Contract string `json:"contract"` Claims json.RawMessage `json:"claims"` IsRevocation bool `json:"is_revocation"` Signer string `json:"signer"` Sender string `json:"sender"` TxHash OpHash `json:"tx_hash"` TxFee int64 `json:"tx_fee,string"` Block int64 `json:"block"` Time time.Time `json:"time"` }
Click to show internal directories.
Click to hide internal directories.