view

package
v0.0.0-...-13d5c5d Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRPCIns

func GetRPCIns() *rpcclient.Client

Types

type AddressBalance

type AddressBalance struct {
	Address          string
	BalanceAvailable *decimal.Decimal `json:"balance_available"`
	Status           int
}

type BurnBCH

type BurnBCH struct {
	TxVersion     string  `form:"transaction_version" binding:"required"`
	PubKey        *string `form:"pubkey" binding:"-"`
	Fee           float64 `form:"fee" binding:"gte=0.00001,required"`
	From          string  `form:"transaction_from" binding:"required"`
	Amount        float64 `form:"amount_for_burn" binding:"min=1,max=21000000,required"`
	RedeemAddress *string `form:"redeem_address" binding:"-"`
}

tx type: 68

type ChallengeVO

type ChallengeVO struct {
	Salt         string `json:"salt"`
	PowChallenge string `json:"pow_challenge"`
	Challenge    string `json:"challenge"`
}

* Define Value Object,use by *VO

type ChangeIssuer

type ChangeIssuer struct {
	TxVersion string  `form:"transaction_version" binding:"required"`
	PubKey    *string `form:"pubkey" binding:"-"`
	Fee       float64 `form:"fee" binding:"gte=0.00001,required"`
	From      string  `form:"transaction_from" binding:"required"`
	To        string  `form:"transaction_to" binding:"required"`
	CID       int64   `form:"currency_identifier" binding:"gte=1,required"`
}

tx type: 70

type CloseCrowdSale

type CloseCrowdSale struct {
	TxVersion string  `form:"transaction_version" binding:"required"`
	PubKey    *string `form:"pubkey" binding:"-"`
	Fee       float64 `form:"fee" binding:"gte=0.00001,required"`
	From      string  `form:"transaction_from" binding:"required"`
	CID       int64   `form:"currency_identifier" binding:"gte=1,required"`
}

tx type: 53

type CrowdSaleIssuance

type CrowdSaleIssuance struct {
	TxVersion   string  `form:"transaction_version" binding:"required"`
	PubKey      *string `form:"pubkey" binding:"-"`
	Fee         float64 `form:"fee" binding:"gte=0.00001,required"`
	From        string  `form:"transaction_from" binding:"required"`
	Eco         int64   `form:"ecosystem" binding:"eq=1,required"`
	Precision   int64   `form:"precision" binding:"max=8"`
	PrevPID     int64   `form:"previous_property_id" binding:"eq=0"`
	Category    string  `form:"property_category" binding:"required"`
	SubCategory string  `form:"property_subcategory" binding:"required"`
	Name        string  `form:"property_name" binding:"required"`
	Url         string  `form:"property_url" binding:"url,required"`
	Data        string  `form:"property_data" binding:"required"`
	DesiredPID  int64   `form:"currency_identifier_desired" binding:"eq=1,required"`
	Exchange    string  `form:"number_properties" binding:"gt=0,required"`
	DeadLine    int64   `form:"deadline" binding:"required"`
	EarlyBird   int64   `form:"earlybird_bonus" binding:"min=0,max=255"`
	TotalNumber string  `form:"total_number" binding:"gt=0,required"`
}

tx type: 51

type FeeRate

type FeeRate struct {
	Fast   float64
	Normal float64
	Slow   float64
}

type FixedIssuance

type FixedIssuance struct {
	TxVersion   string  `form:"transaction_version" binding:"required"`
	PubKey      *string `form:"pubkey" binding:"-"`
	Fee         float64 `form:"fee" binding:"gte=0.00001,required"`
	From        string  `form:"transaction_from" binding:"required"`
	Eco         int64   `form:"ecosystem" binding:"eq=1,required"`
	Precision   int64   `form:"precision" binding:"max=8"`
	PrevPID     int64   `form:"previous_property_id" binding:"eq=0"`
	Category    string  `form:"property_category" binding:"required"`
	SubCategory string  `form:"property_subcategory" binding:"required"`
	Name        string  `form:"property_name" binding:"required"`
	Url         string  `form:"property_url" binding:"url,required"`
	Data        string  `form:"property_data" binding:"required"`
	TotalNumber string  `form:"number_properties" binding:"gt=0,required"`
}

tx type: 50

type FreezeToken

type FreezeToken struct {
	From          string `form:"transaction_from" binding:"required"`
	PropertyId    int64  `form:"property_id" binding:"gte=1,required"`
	Amount        string `form:"amount"`
	FrozenAddress string `form:"frozen_address" binding:"-"`
}

type ManagedIssuance

type ManagedIssuance struct {
	TxVersion   string  `form:"transaction_version" binding:"required"`
	PubKey      *string `form:"pubkey" binding:"-"`
	Fee         float64 `form:"fee" binding:"gte=0.00001,required"`
	From        string  `form:"transaction_from" binding:"required"`
	Eco         int64   `form:"ecosystem" binding:"eq=1,required"`
	Precision   int64   `form:"precision" binding:"max=8"`
	PrevPID     int64   `form:"previous_property_id"`
	Category    string  `form:"property_category" binding:"required"`
	SubCategory string  `form:"property_subcategory" binding:"required"`
	Name        string  `form:"property_name" binding:"required"`
	Url         string  `form:"property_url" binding:"url,required"`
	Data        string  `form:"property_data" binding:"required"`
}

tx type: 54

type MfaVO

type MfaVO struct {
	Secret string `json:"secret"`
	Prov   string `json:"prov"`
}

type ParticipateCrowdSale

type ParticipateCrowdSale struct {
	TxVersion       string   `form:"transaction_version" binding:"required"`
	PubKey          *string  `form:"pubkey" binding:"-"`
	Fee             float64  `form:"fee" binding:"gte=0.00001,required"`
	From            string   `form:"transaction_from" binding:"required"`
	To              string   `form:"transaction_to" binding:"required"`
	Amount          float64  `form:"amount_to_transfer" binding:"gt=0,required"`
	RedeemAddress   *string  `form:"redeem_address" binding:"-"`
	ReferenceAmount *float64 `form:"reference_amount"`
}

tx type: 1

type SendAll

type SendAll struct {
	TxVersion       string   `form:"transaction_version" binding:"required"`
	PubKey          *string  `form:"pubkey" binding:"-"`
	Fee             float64  `form:"fee" binding:"gte=0.00001,required"`
	From            string   `form:"transaction_from" binding:"required"`
	To              string   `form:"transaction_to" binding:"required"`
	Eco             int64    `form:"ecosystem" binding:"eq=1,required"`
	RedeemAddress   *string  `form:"redeem_address"`
	ReferenceAmount *float64 `form:"reference_amount"`
}

tx type: 4

type SendGrant

type SendGrant struct {
	TxVersion string  `form:"transaction_version" binding:"required"`
	PubKey    *string `form:"pubkey" binding:"-"`
	Fee       float64 `form:"fee" binding:"gte=0.00001,required"`
	From      string  `form:"transaction_from" binding:"required"`
	CID       int64   `form:"currency_identifier" binding:"gte=1,required"`
	Amount    float64 `form:"amount" binding:"gt=0,required"`
	Note      *string `form:"note" binding:"-"`
}

tx type: 55

type SendRevoke

type SendRevoke struct {
	TxVersion string  `form:"transaction_version" binding:"required"`
	PubKey    *string `form:"pubkey" binding:"-"`
	Fee       float64 `form:"fee" binding:"gte=0.00001,required"`
	From      string  `form:"transaction_from" binding:"required"`
	CID       int64   `form:"currency_identifier" binding:"gte=1,required"`
	Amount    float64 `form:"amount" binding:"gt=0,required"`
	Note      *string `form:"note" binding:"-"`
}

tx type: 56

type SendSto

type SendSto struct {
	TxVersion     string  `form:"transaction_version" binding:"required"`
	PubKey        *string `form:"pubkey" binding:"-"`
	Fee           float64 `form:"fee" binding:"gte=0.00001,required"`
	From          string  `form:"transaction_from" binding:"required"`
	PID           int64   `form:"propertyid" binding:"gte=1,required"`
	Amount        float64 `form:"amount" binding:"gt=0,required"`
	RedeemAddress *string `form:"redeem_address" binding:"-"`
	DisPID        *int64  `form:"distributionproperty"`
}

tx type: 3

type SimpleSendTx

type SimpleSendTx struct {
	TxVersion       string   `form:"transaction_version" binding:"required"`
	PubKey          *string  `form:"pubkey" binding:"-"`
	Fee             float64  `form:"fee" binding:"gte=0.00001,required"`
	From            string   `form:"transaction_from" binding:"required"`
	To              string   `form:"transaction_to" binding:"required"`
	CID             int64    `form:"currency_identifier" binding:"gte=1,required"`
	Amount          float64  `form:"amount_to_transfer" binding:"gt=0,required"`
	RedeemAddress   *string  `form:"redeem_address" binding:"-"`
	ReferenceAmount *float64 `form:"reference_amount"`
}

tx type: 0

type UserTx

type UserTx struct {
	FromAddress   string    `form:"transaction_from"`
	ToAddress     []string  `form:"address[]" binding:"required"`
	ToAmount      []float64 `form:"amount[]" binding:"required"`
	Fee           float64   `form:"fee" binding:"gte=0.00001,required"`
	RedeemAddress string    `form:"redeem_address"`
}

type Version

type Version struct {
	Version     string `json:"version"`
	VersionCode int    `json:"versionCode"`
	Download    string `json:"download"`
	Description string `json:"description"`
}

type WalletCreateParam

type WalletCreateParam struct {
	Email         string `form:"email" binding:"required"`
	Nonce         string `form:"nonce" binding:"required"`
	PublicKey     string `form:"public_key" binding:"required"`
	Uuid          string `form:"uuid" binding:"required"`
	Wallet        string `form:"wallet" binding:"required"`
	RecaptchaResp string `form:"recaptcha_response_field"`
}

type WalletLoginParam

type WalletLoginParam struct {
	Nonce         string `form:"nonce" binding:"required"`
	PublicKey     string `form:"public_key" binding:"required"`
	Uuid          string `form:"uuid" binding:"required"`
	Mfatoken      string `form:"mfatoken"`
	RecaptchaResp string `form:"recaptcha_response_field"`
}

type WalletUpdateParam

type WalletUpdateParam struct {
	Uuid      string `form:"uuid" binding:"required"`
	Wallet    string `form:"wallet"`
	Signature string `form:"signature" binding:"required"`
	Email     string `form:"email"`

	//about MFA
	MfaSecret string `form:"mfa_secret"`
	MfaToken  string `form:"mfa_token"`
	MfaAction string `form:"mfa_action"`
	Question  string `form:"question"`
	Answer    string `form:"answer"`
}

type WalletVO

type WalletVO struct {
	Wallet string `json:"wallet"`
	Mfa    bool   `json:"mfa"`
	Asq    string `json:"asq"`
}

type WalletVerifyParam

type WalletVerifyParam struct {
	Email string `form:"email"`
	Phone string `form:"phone"`
}

Jump to

Keyboard shortcuts

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