Skip to content

Commit

Permalink
add check if tx on neo2 is from wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
joeqian10 committed Aug 2, 2021
1 parent 667b034 commit 34111b5
Show file tree
Hide file tree
Showing 16 changed files with 534 additions and 262 deletions.
17 changes: 17 additions & 0 deletions backups/devnet/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"RelayJsonRpcUrl": "http://138.91.6.226:40336",
"RelayChainID": 0,
"WalletFile": "./poly_test.dat",
"NeoMagic": 6543221,
"NeoWalletFile": "./neo3_dev.json",
"NeoJsonRpcUrl": "http://seed1t.neo.org:21332",
"NeoChainID": 220,
"NeoCCMC": "0x7c842f3900ceba5bcdeeeec05c9b41ba63ad6cd2",
"SpecificContract": "",
"ScanInterval": 2,
"RetryInterval": 2,
"DBPath": "boltdb",
"ChangeBookkeeper": true,
"PolyStartHeight": 1196919,
"NeoStartHeight": 67140
}
1 change: 1 addition & 0 deletions backups/devnet/neo3_dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":null,"version":"1.0","scrypt":{"n":16384,"r":8,"p":8},"accounts":[{"address":"NWZPTRojhAQ1DZ8wGZYVSpX87oNEajLZ5Y","label":null,"isdefault":false,"lock":false,"key":"6PYURwh7xSUBA6yEbBsnYCGESd7UNHi3iWHsDweCxwzEH8xPBSphb1z7ss","contract":{"script":"DCEDBZF107jxpjbIR22sox21V6K7aZvg9/N2wIgp7txBLIJBVuezJw==","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null}],"extra":null}
3 changes: 3 additions & 0 deletions backups/devnet/pwd.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package devnet

// --neopwd poly --relaypwd 4cUYqGj2yib718E7ZmGQc, for neo3_dev.json
1 change: 1 addition & 0 deletions backups/devnet/qian.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":null,"version":"1.0","scrypt":{"n":16384,"r":8,"p":8},"accounts":[{"address":"NbEa6FJ1wz5Tqqk4WzGGZkrktzVzm4uQYo","label":null,"isdefault":false,"lock":false,"key":"6PYPcZavziPGCxkt9358xdMUM5penKuEGvXrFwJ1QTaE45qnYZ2fuk8JVd","contract":{"script":"DCECOf1zcDTs2F1xI/VaKOSyVRKLEHf0XFmJXWIVZSmh\u002B6dBdHR2qg==","parameters":[{"name":"signature","type":"Signature"}],"deployed":false},"extra":null}],"extra":null}
13 changes: 8 additions & 5 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
"NeoJsonRpcUrl": "http://seed1t4.neo.org:20332",
"NeoChainID": 88,
"NeoCCMC": "0x618d44dc3af16c6120dbf65402024f40a04f772a",
"SpecificContract": "",
"ScanInterval": 2,
"RetryInterval": 2,
"NtorContract": "",
"RtonContract": "",
"ScanInterval": 15,
"RetryInterval": 5,
"DBPath": "boltdb",
"ChangeBookkeeper": true,
"PolyStartHeight": 0,
"NeoStartHeight": 0
"Neo2RpcUrl": "http://seed1.ngd.network:20332",
"Neo2Wrapper": "0x7997ac991b66ca3810602639a2f2c1bd985e8b5a",
"PolyStartHeight": 12665830,
"NeoStartHeight": 48950
}
32 changes: 15 additions & 17 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,21 @@ type Config struct {
RelayJsonRpcUrl string
WalletFile string
RelayAccountsPath string

NeoMagic uint32
NeoWalletFile string
NeoJsonRpcUrl string
NeoChainID uint64
NeoCCMC string // little endian string
SpecificContract string // the specific contract which is monitored
//NeoSysFee float64
//NeoNetFee float64

ScanInterval uint64
RetryInterval uint64
DBPath string
ChangeBookkeeper bool

PolyStartHeight uint32
NeoStartHeight uint32
NeoMagic uint32
NeoWalletFile string
NeoJsonRpcUrl string
NeoChainID uint64
NeoCCMC string // big endian string, like 0x1234567812345678123456781234567812345678
NtorContract string
RtonContract string
ScanInterval uint64
RetryInterval uint64
DBPath string
ChangeBookkeeper bool
Neo2RpcUrl string
Neo2Wrapper string
PolyStartHeight uint32
NeoStartHeight uint32
}

//Default config instance
Expand Down
Loading

0 comments on commit 34111b5

Please sign in to comment.