Skip to content

Commit

Permalink
[Runtime] change coinbase
Browse files Browse the repository at this point in the history
replace test account address
  • Loading branch information
CaptainVincent committed Mar 3, 2021
1 parent 0f2791f commit 0b44ea7
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ GENESIS_ROOT_PATH ?= resources/genesis
GENESIS_FILES ?= \
genesis.json \
genesis_testing.json \
genesis_mainnet_testing_ff01.json
genesis_mainnet_testing_ff01.json \
genesis_mainnet_testing_ff02.json

# Extra build args.
EXTRA_BUILD_ARGS := $(if $(RELEASE),--release,)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ docker pull secondstate/oasis-ssvm
- Get source code from Github.

```bash
git clone https://github.com/oasisprotocol/oasis-core.git --branch v20.9
git clone https://github.com/oasisprotocol/oasis-core.git --branch v20.12.4
git clone https://github.com/second-state/oasis-ssvm-runtime.git --branch ssvm
```

Expand Down
60 changes: 60 additions & 0 deletions resources/genesis/genesis_mainnet_testing_ff02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "Oasis",
"engine": {
"instantSeal": null
},
"params": {
"gasLimitBoundDivisor": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"registrar" : "0xc6d9d2cd449a754c494264e1809c50e34d64562b",
"accountStartNonce": "0x00",
"maximumExtraDataSize": "0x20",
"minGasLimit": "0x1388",
"networkID" : "0x45",
"chainID": "0x45",
"maxCodeSize": 4294967296,
"maxCodeSizeTransition": "0x0",
"eip86Transition": "0xffffffffffffffff",
"eip98Transition": "0xffffffffffffffff",
"eip140Transition": "0x0",
"eip145Transition": "0x0",
"eip150Transition": "0x0",
"eip155Transition": "0x0",
"eip160Transition": "0x0",
"eip161abcTransition": "0x0",
"eip161dTransition": "0x0",
"eip211Transition": "0x0",
"eip214Transition": "0x0",
"eip658Transition": "0x0",
"wasmActivationTransition": "0x0"
},
"genesis": {
"seal": {
"generic": "0x0"
},
"difficulty": "0x000000000",
"author": "0x0000000000000000000000000000000000000000",
"timestamp": "0x00",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0xf42400"
},
"accounts": {
"0000000000000000000000000000000000000001": { "builtin": { "name": "ecrecover", "pricing": { "linear": { "base": 3000, "word": 0 } } } },
"0000000000000000000000000000000000000002": { "builtin": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } } },
"0000000000000000000000000000000000000003": { "builtin": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } } },
"0000000000000000000000000000000000000004": { "builtin": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } } },
"0000000000000000000000000000000000000005": { "builtin": { "name": "modexp", "activate_at": 0, "pricing": { "modexp": { "divisor": 20 } } } },
"0000000000000000000000000000000000000006": { "builtin": { "name": "alt_bn128_add", "activate_at": 0, "pricing": { "linear": { "base": 500, "word": 0 } } } },
"0000000000000000000000000000000000000007": { "builtin": { "name": "alt_bn128_mul", "activate_at": 0, "pricing": { "linear": { "base": 40000, "word": 0 } } } },
"0000000000000000000000000000000000000008": { "builtin": { "name": "alt_bn128_pairing", "activate_at": 0, "pricing": { "alt_bn128_pairing": { "base": 100000, "pair": 80000 } } } },
"22aa096E896e16c0B99bdb93D6084C947c3bddAB": {
"balance": "0",
"storage": {
"0": "0x000000000000000000000000000000000000000000000000000000006041bad0",
"1": "0x0000000000000000000000000000000000000000000000000000000000000000",
"2": "0x0000000000000000000000000000000000000000000000000000000000000000",
"3": "0x0000000000000000000000000000000000000000000000640000000000000001"
}
}
}
}
26 changes: 26 additions & 0 deletions resources/genesis/oasis_genesis_mainnet_testing_ff02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
[
"IqoJboluFsC5m9uT1ghMlHw73as=",
"+EWAgKCr/A+2NRmcZ3sIwQtr3yBLXNZ99WiV9Ou5KxfM6RPe8KDF0kYBhvcjPJJ+fbLcxwPA5QC2U8qCJzt7+tgEXYWkcIA="
],
[
"IqoJboluFsC5m9uT1ghMlHw73asCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
"oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgQbrQ"
],
[
"IqoJboluFsC5m9uT1ghMlHw73asCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAE=",
"oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
],
[
"IqoJboluFsC5m9uT1ghMlHw73asCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAI=",
"oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
],
[
"IqoJboluFsC5m9uT1ghMlHw73asCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM=",
"oAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZAAAAAAAAAAB"
],
[
"Z2VuZXNpc19pbml0aWFsaXplZA==",
"AQ=="
]
]
2 changes: 1 addition & 1 deletion src/fund.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl FundManager {
// Here we use 1 round denote 30 days (represent 1 month).

/// Unlock address.
const BENEFICIARY: &'static str = "7110316b618d20d0c44728ac2a3d683536ea682b";
const BENEFICIARY: &'static str = "22aa096E896e16c0B99bdb93D6084C947c3bddAB";
/// Adjust unlock amount period.
const PERIOD: i64 = 20;
/// Ticks means seconds in 30 days.
Expand Down

0 comments on commit 0b44ea7

Please sign in to comment.