forked from echovl/cardano-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protocol.go
36 lines (34 loc) · 960 Bytes
/
protocol.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package cardano
// ProtocolParams is a Cardano Protocol Parameters.
type ProtocolParams struct {
MinFeeA Coin
MinFeeB Coin
MaxBlockBodySize uint
MaxTxSize uint
MaxBlockHeaderSize uint
KeyDeposit Coin
PoolDeposit Coin
MaxEpoch uint
NOpt uint
PoolPledgeInfluence Rational
ExpansionRate UnitInterval
TreasuryGrowthRate UnitInterval
D UnitInterval
ExtraEntropy []byte
ProtocolVersion ProtocolVersion
MinPoolCost Coin
CoinsPerUTXOWord Coin
CostModels interface{}
ExecutionCosts interface{}
MaxTxExUnits interface{}
MaxBlockTxExUnits interface{}
MaxValueSize uint
CollateralPercentage uint
MaxCollateralInputs uint
}
// ProtocolVersion is the protocol version number.
type ProtocolVersion struct {
_ struct{} `cbor:"_,toarray"`
Major uint
Minor uint
}