Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhongtao committed Dec 4, 2023
1 parent 9df74fc commit 3d38bb6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
26 changes: 19 additions & 7 deletions common/chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,26 @@ import (
"github.com/tidwall/gjson"
)

//dev
//var defaultChainCode = map[string]map[int64]int8{
// "ETH": {200: 1, 2001: 1},
// "POLYGON": {201: 1, 2011: 1},
// "BSC": {202: 1},
// "TRON": {205: 1},
// "BTC": {300: 1},
// "FIL": {301: 1},
// "XRP": {310: 1},
//}

// main
var defaultChainCode = map[string]map[int64]int8{
"ETH": {200: 1, 2001: 1},
"POLYGON": {201: 1, 2011: 1},
"BSC": {202: 1},
"TRON": {205: 1},
"BTC": {300: 1},
"FIL": {301: 1},
"XRP": {310: 1},
"ETH": {60: 1, 6001: 1},
"POLYGON": {62: 1, 6201: 1},
"BSC": {2510: 1, 2610: 1},
"TRON": {195: 1, 198: 1},
"BTC": {0: 1, 1: 1},
"FIL": {2307: 1},
"XRP": {144: 1},
}

func LoadConfig(path string) (string, error) {
Expand Down
26 changes: 12 additions & 14 deletions common/chain/chain.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
{
"ETH": [
200,
2001
60,
6001
],
"POLYGON": [
201,
2011
62,
6201
],
"BSC": [
202,
2021
2510,
2610
],
"TRON": [
205,
2051
195,
198
],
"BTC": [
300,
3001
0,
1
],
"FIL": [
301,
3011
2307
],
"XRP": [
310,
3101
144
]
}

0 comments on commit 3d38bb6

Please sign in to comment.