Skip to content

Commit

Permalink
Merge pull request #2020 from ElrondNetwork/integrate-new-hooks
Browse files Browse the repository at this point in the history
fixed more tests and made mocks follow new vmcommon interface
  • Loading branch information
sasurobert committed Jun 25, 2020
2 parents 764030f + 5809523 commit c7b7bf1
Show file tree
Hide file tree
Showing 44 changed files with 418 additions and 2,279 deletions.
5 changes: 4 additions & 1 deletion cmd/node/config/gasSchedule.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
CompilePerByte = 300

[ElrondAPICost]
GetOwner = 100
GetSCAddress = 100
GetOwnerAddress = 100
IsSmartContract = 100
GetShardOfAddress = 100
GetExternalBalance = 7000
GetBlockHash = 1000
TransferValue = 150000
Expand Down
Binary file modified cmd/node/config/genesisContracts/delegation.wasm
100644 → 100755
Binary file not shown.
Binary file modified cmd/node/config/genesisContracts/dns.wasm
100644 → 100755
Binary file not shown.
4 changes: 2 additions & 2 deletions cmd/node/config/genesisSmartContracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"owner": "erd17326yupjy7cq7qv94n704ttxrh4lrhl7qt7mppdu9evwmj5mwt8s794sua",
"filename": "./config/genesisContracts/delegation.wasm",
"vm-type": "0500",
"init-parameters": "0BB8@%auction_sc_address%@0A61D0",
"init-parameters": "%auction_sc_address%@03E8@03E8@03E8",
"type": "delegation",
"version": "0.2.*"
"version": "0.3.*"
},
{
"owner": "erd16grmckn46ry7fwyvass8e8pz88klazzpc0c5f0pnrv643td4797sgnvjkm",
Expand Down
8 changes: 8 additions & 0 deletions core/converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,11 @@ func ConvertToEvenHexBigInt(value *big.Int) string {

return str
}

// BooleanToInt takes a bool argument and returns 0 for false, 1 for true
func BooleanToInt(b bool) int {
if b {
return 1
}
return 0
}
Binary file modified genesis/process/testdata/delegation.wasm
100644 → 100755
Binary file not shown.
10 changes: 4 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ module github.com/ElrondNetwork/elrond-go
go 1.13

require (
github.com/ElrondNetwork/arwen-wasm-vm v0.3.20
github.com/ElrondNetwork/arwen-wasm-vm v0.3.23
github.com/ElrondNetwork/concurrent-map v0.1.2
github.com/ElrondNetwork/elrond-go-logger v1.0.4
github.com/ElrondNetwork/elrond-vm v0.0.25
github.com/ElrondNetwork/elrond-vm-common v0.1.20
github.com/ElrondNetwork/elrond-vm-common v0.1.21
github.com/beevik/ntp v0.2.0
github.com/btcsuite/btcd v0.20.1-beta
github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d
github.com/denisbrodbeck/machineid v1.0.1
github.com/elastic/go-elasticsearch/v7 v7.1.0
github.com/gin-contrib/cors v0.0.0-20190301062745-f9e10995c85a
github.com/gin-contrib/pprof v1.2.0
github.com/gin-gonic/gin v1.3.0
github.com/gin-gonic/gin v1.6.3
github.com/gizak/termui/v3 v3.1.0
github.com/gogo/protobuf v1.3.1
github.com/golang/protobuf v1.3.5
Expand All @@ -37,11 +36,10 @@ require (
github.com/multiformats/go-multiaddr v0.2.2
github.com/pelletier/go-toml v1.6.0
github.com/pkg/errors v0.9.1
github.com/pkg/profile v1.3.0
github.com/shirou/gopsutil v0.0.0-20190731134726-d80c43f9c984
github.com/stretchr/testify v1.5.1
github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965
github.com/urfave/cli v1.20.0
github.com/urfave/cli v1.22.4
github.com/whyrusleeping/timecache v0.0.0-20160911033111-cfcb2f1abfee
golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37
golang.org/x/net v0.0.0-20200519113804-d87ec0cfa476
Expand Down
61 changes: 44 additions & 17 deletions go.sum

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion integrationTests/agar_v1_min.hex

This file was deleted.

1 change: 0 additions & 1 deletion integrationTests/agarioV3.hex

This file was deleted.

0 comments on commit c7b7bf1

Please sign in to comment.