Skip to content

Commit

Permalink
feat: change version to 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAmora committed Mar 11, 2025
1 parent e11b6b6 commit a8de9e4
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions deployment/address_book.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func (ct ContractType) String() string {
}

var (
Version0_5_0 = *semver.MustParse("0.5.0")
Version1_0_0 = *semver.MustParse("1.0.0")
Version1_1_0 = *semver.MustParse("1.1.0")
Version1_2_0 = *semver.MustParse("1.2.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func maybeLoadConfigurator(e deployment.Environment, chainSel uint64, contractAd
if !found {
return nil, fmt.Errorf("unable to find Configurator contract on chain %s (selector %d)", chain.Name(), chain.Selector)
}
if tv.Type != types.Configurator || tv.Version != deployment.Version1_0_0 {
if tv.Type != types.Configurator || tv.Version != deployment.Version0_5_0 {
return nil, fmt.Errorf("unexpected contract type %s for Configurator on chain %s (selector %d)", tv, chain.Name(), chain.Selector)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestCallPromoteStagingConfig(t *testing.T) {
var configuratorAddr common.Address
for addr, tv := range ab[testutil.TestChain.Selector] {
require.Equal(t, types.Configurator, tv.Type)
require.Equal(t, deployment.Version1_0_0, tv.Version)
require.Equal(t, deployment.Version0_5_0, tv.Version)
configuratorAddr = common.HexToAddress(addr)
}
require.NoError(t, e.ExistingAddresses.Merge(out.AddressBook))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestCallSetProductionConfig(t *testing.T) {
var configuratorAddr common.Address
for addr, tv := range ab[testutil.TestChain.Selector] {
require.Equal(t, types.Configurator, tv.Type)
require.Equal(t, deployment.Version1_0_0, tv.Version)
require.Equal(t, deployment.Version0_5_0, tv.Version)
configuratorAddr = common.HexToAddress(addr)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestCallSetStagingConfig(t *testing.T) {
var configuratorAddr common.Address
for addr, tv := range ab[testutil.TestChain.Selector] {
require.Equal(t, types.Configurator, tv.Type)
require.Equal(t, deployment.Version1_0_0, tv.Version)
require.Equal(t, deployment.Version0_5_0, tv.Version)
configuratorAddr = common.HexToAddress(addr)
}

Expand Down
2 changes: 1 addition & 1 deletion deployment/data-streams/changeset/deploy_configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func ConfiguratorDeployFn() ContractDeployFn[*configurator.Configurator] {
Address: ccsAddr,
Contract: ccs,
Tx: ccsTx,
Tv: deployment.NewTypeAndVersion(types.Configurator, deployment.Version1_0_0),
Tv: deployment.NewTypeAndVersion(types.Configurator, deployment.Version0_5_0),
Err: nil,
}
}
Expand Down
2 changes: 1 addition & 1 deletion deployment/data-streams/changeset/deploy_fee_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func FeeManagerDeployFn() ContractDeployFn[*fee_manager.FeeManager] {
Address: ccsAddr,
Contract: ccs,
Tx: ccsTx,
Tv: deployment.NewTypeAndVersion(types.FeeManager, deployment.Version1_0_0),
Tv: deployment.NewTypeAndVersion(types.FeeManager, deployment.Version0_5_0),
Err: nil,
}
}
Expand Down
4 changes: 2 additions & 2 deletions deployment/data-streams/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ func LoadChainConfig(chain deployment.Chain, addresses map[string]deployment.Typ
}
cc.ChannelConfigStores[chain.Selector] = append(cc.ChannelConfigStores[chain.Selector], ccs)

case deployment.NewTypeAndVersion(types.FeeManager, deployment.Version1_0_0).String():
case deployment.NewTypeAndVersion(types.FeeManager, deployment.Version0_5_0).String():
ccs, err := fee_manager.NewFeeManager(common.HexToAddress(address), chain.Client)
if err != nil {
return cc, err
}
cc.FeeManagers[chain.Selector] = append(cc.FeeManagers[chain.Selector], ccs)

case deployment.NewTypeAndVersion(types.Configurator, deployment.Version1_0_0).String():
case deployment.NewTypeAndVersion(types.Configurator, deployment.Version0_5_0).String():
ccs, err := configurator.NewConfigurator(common.HexToAddress(address), chain.Client)
if err != nil {
return cc, err
Expand Down

0 comments on commit a8de9e4

Please sign in to comment.