Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/refactor enable epochs handler #774

Merged
merged 25 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
df9d617
update mx-chain-vm-common-go + use internal EnableEpochsHandler inter…
sstanculeanu Jul 11, 2023
4ed5c4d
update mx-chain-vm-common-go + adapt EnableEpochsHandler
sstanculeanu Aug 17, 2023
b6f4d74
check EnableEpochsHandler compatibility
sstanculeanu Aug 17, 2023
434b2ae
Merge branch 'feat/refactor_enable_epochs_handler_2' of https://githu…
sstanculeanu Aug 18, 2023
d6fbdbd
update go.mod
sstanculeanu Aug 18, 2023
aaa19f5
updated mx-chain-vm-common-go
sstanculeanu Aug 21, 2023
8d78adc
Merge pull request #771 from multiversx/merge_rc160_into_feat_refacto…
sstanculeanu Aug 25, 2023
65cbeb0
Merge branch 'feat/refactor_enable_epochs_handler_2' of https://githu…
sstanculeanu Aug 28, 2023
c6b8cd3
updated mx-chain-vm-common-go + new flag
sstanculeanu Aug 28, 2023
c6aadb4
Merge branch 'master' of https://github.com/multiversx/mx-chain-vm-go…
sstanculeanu Aug 28, 2023
6a8bfbd
updated mx-chain-vm-common-go after merge
sstanculeanu Aug 28, 2023
e585838
Merge pull request #773 from multiversx/merge_master_into_feat_refact…
sstanculeanu Aug 28, 2023
c2ac8f6
Merge branch 'feat/refactor_enable_epochs_handler_2' of https://githu…
sstanculeanu Aug 28, 2023
716b749
updated mx-chain-vm-common-go after merge
sstanculeanu Aug 28, 2023
77465ed
fix tests
sstanculeanu Aug 28, 2023
f48d424
updated mx-chain-vm-common-go
sstanculeanu Aug 30, 2023
8fc0f03
updated mx-chain-vm-common-go
sstanculeanu Aug 30, 2023
7cf46d2
added comments
sstanculeanu Aug 31, 2023
7dc171f
updated mx-chain-vm-common-go
sstanculeanu Sep 1, 2023
529cc54
Merge pull request #766 from multiversx/update_enable_epochs_handler
sstanculeanu Sep 1, 2023
3ad8e30
Merge branch 'master' of https://github.com/multiversx/mx-chain-vm-go…
sstanculeanu Sep 18, 2023
afab2d8
updated mx-chain-vm-common-go + updated EnableEpochsHandlerStubAllFlags
sstanculeanu Sep 18, 2023
207dbac
Merge pull request #780 from multiversx/merge_master_into_feat_refact…
sstanculeanu Sep 18, 2023
854db4c
updated deps
sstanculeanu Oct 2, 2023
756d13b
Merge pull request #782 from multiversx/update_dependencies
sstanculeanu Oct 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ require (
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1
github.com/gogo/protobuf v1.3.2
github.com/mitchellh/mapstructure v1.5.0
github.com/multiversx/mx-chain-core-go v1.2.13
github.com/multiversx/mx-chain-core-go v1.2.17
github.com/multiversx/mx-chain-crypto-go v1.2.8
github.com/multiversx/mx-chain-logger-go v1.0.13
github.com/multiversx/mx-chain-scenario-go v1.2.1
github.com/multiversx/mx-chain-vm-common-go v1.5.5
github.com/multiversx/mx-chain-vm-common-go v1.5.6
github.com/multiversx/mx-components-big-int v1.0.0
github.com/pelletier/go-toml v1.9.3
github.com/stretchr/testify v1.8.1
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyua
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/mr-tron/base58 v1.2.0 h1:T/HDJBh4ZCPbU39/+c3rRvE0uKBQlU27+QI8LJ4t64o=
github.com/mr-tron/base58 v1.2.0/go.mod h1:BinMc/sQntlIE1frQmRFPUoPA1Zkr8VRgBdjWI2mNwc=
github.com/multiversx/mx-chain-core-go v1.2.13 h1:4Svi23hdsoibStFXv0i7lbBWus3kDJPc6CFhrxrKIZ4=
github.com/multiversx/mx-chain-core-go v1.2.13/go.mod h1:BILOGHUOIG5dNNX8cgkzCNfDaVtoYrJRYcPnpxRMH84=
github.com/multiversx/mx-chain-core-go v1.2.17 h1:/7YEuowxnpOtZLAJbuibNWE/8rDcG+WMhNVvrnljPg0=
github.com/multiversx/mx-chain-core-go v1.2.17/go.mod h1:BILOGHUOIG5dNNX8cgkzCNfDaVtoYrJRYcPnpxRMH84=
github.com/multiversx/mx-chain-crypto-go v1.2.8 h1:wOgVlUaO5X4L8iEbFjcQcL8SZvv6WZ7LqH73BiRPhxU=
github.com/multiversx/mx-chain-crypto-go v1.2.8/go.mod h1:fkaWKp1rbQN9wPKya5jeoRyC+c/SyN/NfggreyeBw+8=
github.com/multiversx/mx-chain-logger-go v1.0.13 h1:eru/TETo0MkO4ZTnXsQDKf4PBRpAXmqjT02klNT/JnY=
github.com/multiversx/mx-chain-logger-go v1.0.13/go.mod h1:MZJhTAtZTJxT+yK2EHc4ZW3YOHUc1UdjCD0iahRNBZk=
github.com/multiversx/mx-chain-scenario-go v1.2.1 h1:9eC6VcOEAKRRKZ7EbSWPLzCdNIMWwuNBtAZlgR4cSMA=
github.com/multiversx/mx-chain-scenario-go v1.2.1/go.mod h1:EuZY7DpNFHVNSxJR8dKE1z2I8gBYfEFFPSwNUOXptqE=
github.com/multiversx/mx-chain-vm-common-go v1.5.5 h1:NoG73lvcHSeUcoFlYybG8ceGuJ6KptD3QJjUNEnGDVk=
github.com/multiversx/mx-chain-vm-common-go v1.5.5/go.mod h1:sqkKMCnwkWl8DURdb9q7pctK8IANghdHY1KJLE0ox2c=
github.com/multiversx/mx-chain-vm-common-go v1.5.6 h1:hAWCIkFc5vcweBzpataVsJf0PCPc7tfQBGW/q8nzQ8A=
github.com/multiversx/mx-chain-vm-common-go v1.5.6/go.mod h1:S8bbBlbOVKgl8YBnlmmHakYiSXjKPcSd6WW+Nku/Xys=
github.com/multiversx/mx-components-big-int v1.0.0 h1:Wkr8lSzK2nDqixOrrBa47VNuqdhV1m/aJhaP1EMaiS8=
github.com/multiversx/mx-components-big-int v1.0.0/go.mod h1:maIEMgHlNE2u78JaDD0oLzri+ShgU4okHfzP3LWGdQM=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
Expand Down
4 changes: 2 additions & 2 deletions mock/context/vmHostMock.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type VMHostMock struct {
OutputContext vmhost.OutputContext
MeteringContext vmhost.MeteringContext
StorageContext vmhost.StorageContext
EnableEpochsHandlerField vmcommon.EnableEpochsHandler
EnableEpochsHandlerField vmhost.EnableEpochsHandler
ManagedTypesContext vmhost.ManagedTypesContext

IsBuiltinFunc bool
Expand Down Expand Up @@ -71,7 +71,7 @@ func (host *VMHostMock) Storage() vmhost.StorageContext {
}

// EnableEpochsHandler mocked method
func (host *VMHostMock) EnableEpochsHandler() vmcommon.EnableEpochsHandler {
func (host *VMHostMock) EnableEpochsHandler() vmhost.EnableEpochsHandler {
return host.EnableEpochsHandlerField
}

Expand Down
4 changes: 2 additions & 2 deletions mock/context/vmHostStub.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type VMHostStub struct {
MeteringCalled func() vmhost.MeteringContext
AsyncCalled func() vmhost.AsyncContext
StorageCalled func() vmhost.StorageContext
EnableEpochsHandlerCalled func() vmcommon.EnableEpochsHandler
EnableEpochsHandlerCalled func() vmhost.EnableEpochsHandler
GetContextsCalled func() (vmhost.ManagedTypesContext, vmhost.BlockchainContext, vmhost.MeteringContext, vmhost.OutputContext, vmhost.RuntimeContext, vmhost.AsyncContext, vmhost.StorageContext)
ManagedTypesCalled func() vmhost.ManagedTypesContext

Expand Down Expand Up @@ -160,7 +160,7 @@ func (vhs *VMHostStub) Storage() vmhost.StorageContext {
}

// EnableEpochsHandler mocked method
func (vhs *VMHostStub) EnableEpochsHandler() vmcommon.EnableEpochsHandler {
func (vhs *VMHostStub) EnableEpochsHandler() vmhost.EnableEpochsHandler {
if vhs.EnableEpochsHandlerCalled != nil {
return vhs.EnableEpochsHandlerCalled()
}
Expand Down
Loading
Loading