Documentation
¶
Index ¶
Constants ¶
View Source
const ABI = `` /* 1270-byte string literal not displayed */
View Source
const Address = "0x000000000022D473030F116dDEE9F6B43aC78BA3"
View Source
const DomainName = "Permit2"
Variables ¶
This section is empty.
Functions ¶
func MarshalTypedData ¶
Types ¶
type PermitBatchTransferFrom ¶
type PermitBatchTransferFrom struct {
Permitted []TokenPermissions `json:"permitted"`
Spender string `json:"spender"`
Nonce string `json:"nonce"`
Deadline string `json:"deadline"`
}
type PermitTransferFrom ¶
type PermitTransferFrom struct {
Permitted TokenPermissions `json:"permitted"`
Spender string `json:"spender"`
Nonce string `json:"nonce"`
Deadline string `json:"deadline"`
}
type TokenPermissions ¶
type TypedData ¶
type TypedData struct {
Types map[string][]TypedField `json:"types"`
PrimaryType string `json:"primaryType"`
Domain Domain `json:"domain"`
Message map[string]interface{} `json:"message"`
}
func BuildPermitBatchTransferFrom ¶
func BuildPermitBatchTransferFrom(chainId int64, p PermitBatchTransferFrom) (*TypedData, error)
func BuildPermitTransferFrom ¶
func BuildPermitTransferFrom(chainId int64, p PermitTransferFrom) (*TypedData, error)
type TypedField ¶
Click to show internal directories.
Click to hide internal directories.