Add Orchard spending key functionality #20
1 changed files with 16 additions and 0 deletions
|
@ -61,6 +61,22 @@ data ZcashNet
|
||||||
| RegTestNet
|
| RegTestNet
|
||||||
deriving (Eq, Prelude.Show, Read)
|
deriving (Eq, Prelude.Show, Read)
|
||||||
|
|
||||||
|
type AccountId = Int
|
||||||
|
|
||||||
|
-- ** Constants
|
||||||
|
-- | Types for coin types on the different networks
|
||||||
|
data CoinType
|
||||||
|
= MainNetCoin
|
||||||
|
| TestNetCoin
|
||||||
|
| RegTestNetCoin
|
||||||
|
|
||||||
|
getValue :: CoinType -> Word32
|
||||||
|
getValue c =
|
||||||
|
case c of
|
||||||
|
MainNetCoin -> 133
|
||||||
|
TestNetCoin -> 1
|
||||||
|
RegTestNetCoin -> 1
|
||||||
|
|
||||||
-- * RPC
|
-- * RPC
|
||||||
-- | A type to model Zcash RPC calls
|
-- | A type to model Zcash RPC calls
|
||||||
data RpcCall = RpcCall
|
data RpcCall = RpcCall
|
||||||
|
|
Loading…
Reference in a new issue