Documentation ¶
Index ¶
- Variables
- func CreateTypedSignature(signature string, sigType int) string
- func ExpireAfter(duration time.Duration) string
- func FromString(input string) (u uuid.UUID, err error)
- func GenerateQueryPath(url string, params url.Values) string
- func GetAccountId(address string) string
- func HashString(input string) string
- func Must(u uuid.UUID, err error) uuid.UUID
- func RandomClientId() string
- func ToFloat(s string) float64
- func ToValues(i interface{}) (values url.Values)
- type EthKeySinger
- type EthSigner
- type EthWeb3Signer
- type SignOnboardingAction
- func (a *SignOnboardingAction) GetDomainHash() string
- func (a *SignOnboardingAction) GetEIP712Message(message map[string]interface{}) map[string]interface{}
- func (a *SignOnboardingAction) GetEIP712Struct() []map[string]string
- func (a *SignOnboardingAction) GetEIP712StructName() string
- func (a *SignOnboardingAction) GetEip712Hash(structHash string) string
- func (a *SignOnboardingAction) GetHash(action string) string
- func (a *SignOnboardingAction) Sign(signerAddress string, message map[string]interface{}) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Eip712OnboardingActionStruct = []map[string]string{ {"type": "string", "name": "action"}, {"type": "string", "name": "onlySignOn"}, } Eip712OnboardingActionStructString = "dYdX(string action,string onlySignOn)" Eip712OnboardingActionStructTestnet = []map[string]string{ {"type": "string", "name": "action"}, } Eip712OnboardingActionStructStringTestnet = "dYdX(string action)" Eip712StructName = "dYdX" OnlySignOnDomainMainnet = "https://trade.dydx.exchange" )
Functions ¶
func CreateTypedSignature ¶
func ExpireAfter ¶
func GetAccountId ¶
func HashString ¶
func RandomClientId ¶
func RandomClientId() string
Types ¶
type EthKeySinger ¶
type EthWeb3Signer ¶
type SignOnboardingAction ¶
func NewSigner ¶
func NewSigner(signer EthSigner, networkId int) *SignOnboardingAction
func (*SignOnboardingAction) GetDomainHash ¶
func (a *SignOnboardingAction) GetDomainHash() string
func (*SignOnboardingAction) GetEIP712Message ¶
func (a *SignOnboardingAction) GetEIP712Message(message map[string]interface{}) map[string]interface{}
func (*SignOnboardingAction) GetEIP712Struct ¶
func (a *SignOnboardingAction) GetEIP712Struct() []map[string]string
func (*SignOnboardingAction) GetEIP712StructName ¶
func (a *SignOnboardingAction) GetEIP712StructName() string
func (*SignOnboardingAction) GetEip712Hash ¶
func (a *SignOnboardingAction) GetEip712Hash(structHash string) string
func (*SignOnboardingAction) GetHash ¶
func (a *SignOnboardingAction) GetHash(action string) string
Click to show internal directories.
Click to hide internal directories.