enum

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

AccountTypeMultisig account_type毎のmultisig対応アカウントかどうか

AccountTypeValue account_typeの値

ActionTypeValue action_typeの値

AddressTypeValue address_typeの値

View Source
var CoinTypeValue = map[CoinType]uint8{
	BTC: 1,
	BCH: 2,
}

CoinTypeValue coin_typeの値

View Source
var EnvironmentTypeValue = map[EnvironmentType]uint8{
	EnvDev:  1,
	EnvProd: 2,
}

EnvironmentTypeValue env_typeの値

KeyStatusValue key_statusの値

TxTypeValue tx_typeの値

WalletTypeValue env_typeの値

Functions

func ValidateAccountType

func ValidateAccountType(val string) bool

ValidateAccountType AccountTypeのバリデーションを行う

func ValidateActionType

func ValidateActionType(val string) bool

ValidateActionType ActionTypeのバリデーションを行う

func ValidateBitcoinType

func ValidateBitcoinType(val string) bool

ValidateBitcoinType BitcoinTypeのバリデーションを行う

func ValidateEnvironmentType

func ValidateEnvironmentType(val string) bool

ValidateEnvironmentType EnvironmentTypeのバリデーションを行う

func ValidateKeyStatus

func ValidateKeyStatus(val string) bool

ValidateKeyStatus KeyStatusのバリデーションを行う

func ValidateTxType

func ValidateTxType(val string) bool

ValidateTxType TxTypeのバリデーションを行う

Types

type AccountType

type AccountType string

AccountType 利用目的

const (
	AccountTypeClient        AccountType = "client"        //ユーザーの入金受付用アドレス
	AccountTypeReceipt       AccountType = "receipt"       //入金を受け付けるアドレス用
	AccountTypePayment       AccountType = "payment"       //出金時に支払いをするアドレス
	AccountTypeQuoine        AccountType = "quoine"        //Quoineから購入したcoinが入金されるであろうアドレス
	AccountTypeFee           AccountType = "fee"           //手数料保管用アドレス
	AccountTypeStored        AccountType = "stored"        //保管用アドレス(多額のコインはこちらに保管しておく
	AccountTypeAuthorization AccountType = "authorization" //マルチシグアドレスのための承認アドレス
)

account_type

type ActionType

type ActionType string

ActionType 入金/出金

const (
	ActionTypeReceipt  ActionType = "receipt"
	ActionTypePayment  ActionType = "payment"
	ActionTypeTransfer ActionType = "transfer"
)

action

type AddressType

type AddressType string

AddressType address種別

const (
	AddressTypeLegacy     AddressType = "legacy"
	AddressTypeP2shSegwit AddressType = "p2sh-segwit"
	AddressTypeBech32     AddressType = "bech32"
)

address type

type BTCVersion

type BTCVersion int

BTCVersion 実行環境

const (
	BTCVer16 BTCVersion = 160000
	BTCVer17 BTCVersion = 170000
	BTCVer18 BTCVersion = 180000
)

environment

type CoinType

type CoinType string

CoinType Bitcoin種別(CayenneWalletで取引するcoinの種別)

const (
	BTC CoinType = "btc"
	BCH CoinType = "bch"
)

coin_type

type EnvironmentType

type EnvironmentType string

EnvironmentType 実行環境

const (
	EnvDev  EnvironmentType = "dev"
	EnvProd EnvironmentType = "prod"
)

environment

type KeyStatus

type KeyStatus string

KeyStatus Key生成進捗ステータス

const (
	KeyStatusGenerated            KeyStatus = "generated"              //hd_walletによってkeyが生成された
	KeyStatusImportprivkey        KeyStatus = "importprivkey"          //importprivkeyが実行された
	KeyStatusPubkeyExported       KeyStatus = "pubkey_exported"        //pubkeyがexportされた(receipt/payment)
	KeyStatusMultiAddressImported KeyStatus = "multi_address_imported" //multiaddがimportされた(receipt/payment)
	KeyStatusAddressExported      KeyStatus = "address_exported"       //addressがexportされた
)

key_status

type NetworkType

type NetworkType string

NetworkType ネットワーク種別

const (
	NetworkTypeMainNet    NetworkType = "mainnet"
	NetworkTypeTestNet3   NetworkType = "testnet3"
	NetworkTypeRegTestNet NetworkType = "regtest"
)

network type

type TxType

type TxType string

TxType トランザクション種別

const (
	TxTypeUnsigned    TxType = "unsigned"
	TxTypeUnsigned2nd TxType = "unsigned2nd"
	TxTypeSigned      TxType = "signed"
	TxTypeSent        TxType = "sent"
	TxTypeDone        TxType = "done"
	TxTypeNotified    TxType = "notified"
	TxTypeCancel      TxType = "canceled"
)

tx_type

func (TxType) Search

func (t TxType) Search(txTypes []TxType) bool

Search SliceのtxTypes内にtが含まれているかチェックする

type WalletType

type WalletType string

WalletType Walletタイプ

const (
	WalletTypeWatchOnly WalletType = "watch_only"
	WalletTypeCold1     WalletType = "cold1"
	WalletTypeCold2     WalletType = "cold2"
)

wallet_type

Jump to

Keyboard shortcuts

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