mirror of
https://github.com/hanzoai/commerce.git
synced 2026-10-30 15:08:42 +00:00
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
48 lines
978 B
Go
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"
|