Skip to content

Commit

Permalink
refactor: Config includes BaseGas, GasPerByte, GasPrice for all Trans…
Browse files Browse the repository at this point in the history
…action types, not just Oracle/Contract
  • Loading branch information
randomshinichi committed May 27, 2019
1 parent bb74df6 commit 890267e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions aeternity/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ type StateChannelConfig struct {
ChannelReserve uint64 `json:"channel_reserve" yaml:"channel_reserve" mapstructure:"channel_reserve"`
}

// ClientConfig client paramters configuration
// ClientConfig client parameters configuration
type ClientConfig struct {
BaseGas utils.BigInt
GasPerByte utils.BigInt
GasPrice utils.BigInt
TTL uint64 `json:"ttl" yaml:"ttl" mapstructure:"ttl"`
Fee utils.BigInt `json:"fee" yaml:"fee" mapstructure:"fee"`
DefaultKey string `json:"default_key_name" yaml:"default_key_name" mapstructure:"default_key_name"`
Expand Down Expand Up @@ -92,8 +95,11 @@ var Config = ProfileConfig{
NetworkID: "ae_mainnet",
},
Client: ClientConfig{
TTL: 500,
Fee: *utils.RequireBigIntFromString("200000000000000"),
BaseGas: *utils.NewBigIntFromUint64(15000),
GasPerByte: *utils.NewBigIntFromUint64(20),
GasPrice: *utils.NewBigIntFromUint64(1000000000),
TTL: 500,
Fee: *utils.RequireBigIntFromString("200000000000000"),
Names: AensConfig{
NameTTL: 500, // absolute block height when the name will expire
ClientTTL: 500, // time in blocks until the name resolver should check again in case the name was updated
Expand Down

0 comments on commit 890267e

Please sign in to comment.