Skip to content

Commit

Permalink
sdk46 upgrade to sdk47
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli committed Oct 8, 2023
1 parent 3f82f16 commit 47d2a6e
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 149 deletions.
40 changes: 14 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@

**OttoChain** is a scalable PoS blockchain that is fully compatible and interoperable with the EVM. It is built using the Cosmos SDK which runs on top of the CometBFT consensus engine, to accomplish fast finality, high transaction throughput and short block times (~2 seconds).

## Build & Run

```bash
make build
```

### Run local single node
## OttoChain Testnet

```bash
./scripts/local_node.sh
```
* Chain Name: OttoChain
* Cosmos Chain ID: `otto_9100-1`
* EVM Chain ID (EIP155 Number): `9100`
* JSON RPC: `https://gateway.testnet.octopus.network/ottochain/m4k5urt9h33dpbhgsp4lqxemo6naeihz`
* [Explorer](http://34.69.4.240:4000/)
* [Faucet](http://34.69.4.240:8088/)
* Genesis File: [genesis.json](https://raw.githubusercontent.com/octopus-network/oyster/ocb-otto/genesis.json)
* Persistent Peers:
```json
persistent_peers = "[email protected]:26656, [email protected]:26656"
```

### Run local multi-node
## Run Multi Node

To build start a 4 node testnet using docker, run:

Expand All @@ -36,7 +38,7 @@ You can also watch logs via Docker with the `-f` flag, for example:
docker logs -f ottonode0
```

### Interact with the local multi-node network
### Interact with the Localnet

You can send some curl commands such as:

Expand All @@ -56,20 +58,6 @@ curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getFilterChanges","params":[
{"jsonrpc":"2.0","id":1,"result":["0x5c7be43735b901f41c9aa0c7340c99462f490104cfb8dc14d7fb0a33e15e46c2","0x7bb4eacdf8de04a86ec127b1a4417a38199094754a6e4560610ca2c11b1bfd57","0x1269fd687598334ae734bc24559b8e71dfc1525fdae86ceb3c439d2f4c2a7532","0x434b5ac65b607c8a910fc4f4d589818f4144bc64de638a82ceb24509ddfeac59","0xb26ef28098aa5cdaec6f58b267a8d2806770e46282131ff00b9f52d901c343e5","0xec87d067ea62730db4b0a2b3edcb462bad041c358971de3e5fd11c69761a2f9e","0x9c6f443ee54811d28cc1b903564f7fdbfd3372613cfbd55eddfc23a3205784df","0x83fe4eb6af26523f5675474053ae99d8369afed28bff7de6be727c8062ce53a3","0xdcc146c9d21a10b119397d98658c3d2bc4231c79cc3892d0070c0377308e9fdd","0x4a20b02aaa26846eecf646e606f39641acae52e4d66926dbc8585e406af50452","0x749ac740da8ea608eb293620a8a90b4c30a1fa7036975f07421c41b3cf0f48ca","0xdabcd4e8c672c3536e8cba7b480710a113de246ef679016033109bb1ca2bf405","0xd91373c0eea02653479c02e13d309441c0ff884a5e9b7a6ea0711a3e08c9ed59","0x7ac9e220458c3e7d273583505069385d8f0caf68763adb54744ea1ce449d0d24","0xad9de6812c8fcf292e14c0e4fe7099fdcb39677a9ff0df24862bf8a44b3812d5","0x3c491a7946d6b87e3bc69a7643e195795320e5bab3568bbfea444b93847081db","0x58d49ef24729a20f78047a6d230860ea427b58d300517368ab555db40b2c9309","0xbb24017c97487d554e82b876529c3fbf9e801eaf8105fe57b9414cb24b03fbb8"]}
```

## OttoChain Testnet

* Chain Name: OttoChain
* Cosmos Chain ID: `otto_9100-1`
* EVM Chain ID (EIP155 Number): `9100`
* JSON RPC: `https://gateway.testnet.octopus.network/ottochain/m4k5urt9h33dpbhgsp4lqxemo6naeihz`
* [Explorer](http://34.69.4.240:4000/)
* [Faucet](http://34.69.4.240:8088/)
* Genesis File: [genesis.json](https://raw.githubusercontent.com/octopus-network/oyster/ocb-otto/genesis.json)
* Persistent Peers:
```json
persistent_peers = "[email protected]:26656, [email protected]:26656"
```

## Tutorial

[Hardhat Tutorial](./tutorial/README.md)
44 changes: 20 additions & 24 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,26 @@ require (
github.com/cometbft/cometbft v0.37.2
github.com/cometbft/cometbft-db v0.8.0
github.com/cosmos/cosmos-sdk v0.47.4
github.com/cosmos/ibc-go/v7 v7.3.0
github.com/cosmos/ibc-go/v7 v7.2.0
github.com/ethereum/go-ethereum v1.11.5
github.com/evmos/evmos/v14 v14.0.0-rc3
github.com/evmos/evmos/v14 v14.0.0-20230815162958-92827302f11a
github.com/spf13/cast v1.5.1
github.com/spf13/cobra v1.7.0
github.com/spf13/viper v1.16.0
)

require (
cloud.google.com/go v0.110.4 // indirect
cloud.google.com/go/compute v1.21.0 // indirect
cloud.google.com/go/compute v1.20.1 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v1.1.1 // indirect
cloud.google.com/go/iam v1.1.0 // indirect
cloud.google.com/go/storage v1.30.1 // indirect
cosmossdk.io/api v0.3.1 // indirect
cosmossdk.io/core v0.6.1 // indirect
cosmossdk.io/depinject v1.0.0-alpha.3 // indirect
cosmossdk.io/errors v1.0.0 // indirect
cosmossdk.io/log v1.1.1-0.20230704160919-88f2c830b0ca // indirect
cosmossdk.io/math v1.1.2 // indirect
cosmossdk.io/math v1.0.1 // indirect
filippo.io/edwards25519 v1.0.0 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.1 // indirect
Expand All @@ -43,6 +43,7 @@ require (
github.com/btcsuite/btcd/btcec/v2 v2.3.2 // indirect
github.com/btcsuite/btcd/btcutil v1.1.3 // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
github.com/bytedance/sonic v1.10.0 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
Expand Down Expand Up @@ -82,6 +83,7 @@ require (
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect
github.com/gogo/googleapis v1.4.1 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
Expand Down Expand Up @@ -150,8 +152,8 @@ require (
github.com/prometheus/tsdb v0.10.0 // indirect
github.com/rakyll/statik v0.1.7 // indirect
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/rjeczalik/notify v0.9.3 // indirect
github.com/rs/cors v1.10.0 // indirect
github.com/rjeczalik/notify v0.9.2 // indirect
github.com/rs/cors v1.9.0 // indirect
github.com/rs/zerolog v1.29.1 // indirect
github.com/sasha-s/go-deadlock v0.3.1 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
Expand All @@ -164,7 +166,7 @@ require (
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
github.com/tendermint/go-amino v0.16.0 // indirect
github.com/tidwall/btree v1.6.0 // indirect
github.com/tidwall/gjson v1.16.0 // indirect
github.com/tidwall/gjson v1.14.4 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tidwall/sjson v1.2.5 // indirect
Expand All @@ -176,21 +178,21 @@ require (
github.com/zondax/ledger-go v0.14.1 // indirect
go.etcd.io/bbolt v1.3.7 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.13.0 // indirect
golang.org/x/crypto v0.11.0 // indirect
golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb // indirect
golang.org/x/net v0.15.0 // indirect
golang.org/x/oauth2 v0.10.0 // indirect
golang.org/x/net v0.12.0 // indirect
golang.org/x/oauth2 v0.8.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/term v0.12.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/sys v0.10.0 // indirect
golang.org/x/term v0.10.0 // indirect
golang.org/x/text v0.11.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.126.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/grpc v1.58.0 // indirect
google.golang.org/grpc v1.56.2 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
Expand All @@ -202,16 +204,10 @@ require (
)

replace (
// use cosmos fork of keyring
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
// use Cosmos-SDK fork to enable Ledger functionality
github.com/cosmos/cosmos-sdk => github.com/evmos/cosmos-sdk v0.47.4-evmos.2
// use Evmos geth fork
github.com/ethereum/go-ethereum => github.com/evmos/go-ethereum v1.10.26-evmos-rc2
// use Evmos fork to remove the limit of chainID
github.com/evmos/evmos/v14 => github.com/octopus-network/evmos/v14 v14.0.2-otto
// Security Advisory https://github.com/advisories/GHSA-h395-qcrw-5vmq
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.1
// replace broken goleveldb
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
github.com/evmos/evmos/v14 => github.com/octopus-network/evmos/v14 v14.0.0-otto
)
Loading

0 comments on commit 47d2a6e

Please sign in to comment.