formatters

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivateKeyLabel     = "privateKey"
	AccountIDLabel      = "id"
	DataLabel           = "data"
	NonceLabel          = "nonce"
	ToLabel             = "to"
	AmountLabel         = "amount"
	GasPriceLabel       = "gasPrice"
	GasLimitLabel       = "gasLimit"
	ChainIDLabel        = "chainID"
	PrivateFromLabel    = "privateFrom"
	PrivateForLabel     = "privateFor"
	PrivacyGroupIDLabel = "privacyGroupID"

	NamespaceHeader = "X-Vault-Namespace"
)

Variables

View Source
var AddressFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeString,
	Description: "Address of the account",
	Required:    true,
}
View Source
var AmountFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeString,
	Description: "Amount of ETH (in wei) to transfer",
}
View Source
var ChainIDFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeString,
	Description: "Network ID of the chain where the transaction will be deployed",
	Required:    true,
}
View Source
var DataFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeString,
	Description: "Data of the transaction",
}
View Source
var GasLimitFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeInt,
	Description: "The gas limit for the transaction",
	Required:    true,
}
View Source
var GasPriceFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeString,
	Description: "The gas price for the transaction (in wei)",
	Required:    true,
}
View Source
var NonceFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeInt,
	Description: "Nonce of the transaction",
	Required:    true,
}
View Source
var PrivacyGroupIDFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeString,
	Description: "EEA PrivacyGroupID address in base64 format",
}
View Source
var PrivateForFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeCommaStringSlice,
	Description: "EEA PrivateFor addresses in base64 format",
}
View Source
var PrivateFromFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeString,
	Description: "EEA PrivateFrom address in base64 format",
}
View Source
var ToFieldSchema = &framework.FieldSchema{
	Type:        framework.TypeString,
	Description: "Recipient of the transaction. Empty for contract deployments",
}

Functions

func FormatAccountResponse

func FormatAccountResponse(account *entities.ETHAccount) *logical.Response

func FormatSignEEATransactionRequest

func FormatSignEEATransactionRequest(requestData *framework.FieldData) (tx *types.Transaction, privateArgs *entities2.PrivateETHTransactionParams, err error)

func FormatSignETHTransactionRequest

func FormatSignETHTransactionRequest(requestData *framework.FieldData) (*types.Transaction, error)

func FormatSignQuorumPrivateTransactionRequest

func FormatSignQuorumPrivateTransactionRequest(requestData *framework.FieldData) (*quorumtypes.Transaction, error)

func FormatSignatureResponse

func FormatSignatureResponse(signature string) *logical.Response

func FormatZksAccountResponse

func FormatZksAccountResponse(account *entities.ZksAccount) *logical.Response

func GetRequestNamespace

func GetRequestNamespace(req *logical.Request) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL