Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAddress(addr string)
- func GetClient(options *EthOptions) (*ethclient.Client, error)
- func IsValidSignature(ctx context.Context, client *ethclient.Client, account common.Address, ...) (bool, error)
- func IsValidTypedSignature(ctx context.Context, client *ethclient.Client, account common.Address, ...) (bool, error)
- func NormalizeAddress(addr string) string
- func ToFiles(path string) shell.AddOpts
- func UnipassHashMessage(message []byte) []byte
- func WrapWithDirectory(wrap bool) shell.AddOpts
- type Erc1155Subscription
- type Erc1155TranferInfo
- type Erc1155TransferHandleFunc
- type EthClientConfig
- type EthClientFactory
- type EthOptions
- type FilesApi
- type Filter
- type Ipfs
- type IpfsOptions
- type PolygonscanClient
- type RemotePinApi
- type TokenMeta
Constants ¶
View Source
const ( ChainId_Main string = "1" ChianId_Polygon string = "137" )
View Source
const BaseURL = "https://api.polygonscan.com/api"
View Source
const IsValidSignatureABI = "" /* 328-byte string literal not displayed */
View Source
const UnipassMessagePrefix = "\x18UniPass Signed Message:\n"
Variables ¶
View Source
var EIP1271_SELECTOR = [32]byte{22, 38, 186, 126}
0x1626ba7e
Functions ¶
func CheckAddress ¶
func CheckAddress(addr string)
func IsValidSignature ¶
func IsValidTypedSignature ¶
func NormalizeAddress ¶
func UnipassHashMessage ¶
func WrapWithDirectory ¶
Types ¶
type Erc1155Subscription ¶
type Erc1155Subscription struct {
// contains filtered or unexported fields
}
func NewErc1155TransferWatcher ¶
func NewErc1155TransferWatcher(handler Erc1155TransferHandleFunc) *Erc1155Subscription
func (*Erc1155Subscription) Subscribe ¶
func (esub *Erc1155Subscription) Subscribe(addresses []common.Address)
type Erc1155TranferInfo ¶
type Erc1155TransferHandleFunc ¶
type Erc1155TransferHandleFunc func(sub *Erc1155Subscription, logs []*Erc1155TranferInfo)
type EthClientConfig ¶
type EthClientFactory ¶
type EthClientFactory struct {
// contains filtered or unexported fields
}
func NewEthClientFactory ¶
func NewEthClientFactory(options *EthOptions) *EthClientFactory
type EthOptions ¶
type EthOptions struct { DailUrl string Main *EthClientConfig Polygon *EthClientConfig }
func NewEthOptions ¶
func NewEthOptions() *EthOptions
func (*EthOptions) GetEthConfig ¶
func (eo *EthOptions) GetEthConfig(chainId string) *EthClientConfig
type Ipfs ¶
type Ipfs struct {
// contains filtered or unexported fields
}
func NewIpfsClient ¶
func NewIpfsClient(options *IpfsOptions) *Ipfs
func (*Ipfs) RemotePin ¶
func (ip *Ipfs) RemotePin() *RemotePinApi
type IpfsOptions ¶
type IpfsOptions struct {
Url string
}
type PolygonscanClient ¶
type PolygonscanClient struct {
// contains filtered or unexported fields
}
func NewPolygonscanClient ¶
func NewPolygonscanClient(apiKey string) *PolygonscanClient
type RemotePinApi ¶
Click to show internal directories.
Click to hide internal directories.