Skip to content

Commit

Permalink
common: Fund test entity with 10^15 tokens by default
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Aug 26, 2022
1 parent 8cee56a commit 48ead79
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .changelog/4902.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
oasis-net-runner: Set default max_allowances, increase test account balance

The max_allowances staking setting in the default oasis-net-runner fixture has
been changed from 0 to 16 matching the testnet and mainnet setting. This
enables the allowance transactions locally which are required for doing
deposits to runtimes.

The initial balance of the default test account generated by the
oasis-net-runner was increased from 100 tokens to 1 million. This makes the
account directly suitable for deploying and running confidential smart
contracts (e.g. on the local Cipher instance) with more realistic transaction
fees.
4 changes: 2 additions & 2 deletions go/oasis-node/cmd/common/genesis/staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ func (st *AppendableStakingState) AppendTo(doc *genesis.Document) error {
}
entAddr := staking.NewAddress(ent.ID)

// Ok then, we hold the world ransom for One Hundred Billion Dollars.
// Ok then, we hold the world ransom for One Million Billion Yen.
var q quantity.Quantity
if err = q.FromBigInt(big.NewInt(100000000000)); err != nil {
if err = q.FromBigInt(big.NewInt(1_000_000_000_000_000)); err != nil {
return fmt.Errorf("genesis/staking: failed to allocate test entity stake: %w", err)
}

Expand Down
2 changes: 1 addition & 1 deletion go/oasis-test-runner/scenario/e2e/stake_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (

const (
// Init balance in the genesis block.
initBalance = 100_000_000_000
initBalance = 1_000_000_000_000_000

// Test transfer amount.
transferAmount = 1000
Expand Down

0 comments on commit 48ead79

Please sign in to comment.