Files
commerce/models/blockchains/consts.go
zeekay 1943f1c093 Hanzo Commerce
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans,
usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0.

Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
2026-09-23 21:52:16 -07:00

48 lines
978 B
Go

package blockchains
// Type is the blockchain identifier
type Type string
type BigNumber string
const (
// Ethereum Blockchain
EthereumType Type = "ethereum"
// Ethereum Morden Testnet
EthereumMordenType Type = "ethereum-morden"
// Ethereum Default Testnet
EthereumRopstenType Type = "ethereum-ropsten"
// Bitcoin Blockchain
BitcoinType Type = "bitcoin"
// Bitcoin Testnet
BitcoinTestnetType Type = "bitcoin-testnet"
)
type BitcoinTransactionType string
const (
BitcoinTransactionTypeVIn BitcoinTransactionType = "vin"
BitcoinTransactionTypeVOut BitcoinTransactionType = "vout"
)
type ProcessStatus string
const (
QueuedProcessStatus ProcessStatus = "queued"
ReadingProcessStatus ProcessStatus = "reading"
PendingProcessStatus ProcessStatus = "pending"
ConfirmedProcessStatus ProcessStatus = "confirmed"
)
type Usage string
const (
SenderUsage Usage = "sender"
ReceiverUsage Usage = "receiver"
)
var BlockchainNamespace = "_blockchains"