Skip to content

Commit

Permalink
chore: release v0.74.3-preview.1
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Letang <[email protected]>
  • Loading branch information
jeremyletang committed Feb 19, 2024
1 parent 4a36fe2 commit 8a5dd55
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 50 deletions.
2 changes: 1 addition & 1 deletion core/datasource/spec/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (e *Engine) sendNewSpecSubscription(ctx context.Context, update updatedSubs
proto.Spec.CreatedAt = update.specActivatedAt.UnixNano()
proto.Spec.Status = vegapb.DataSourceSpec_STATUS_ACTIVE

if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
def := update.spec.GetDefinition()
switch def.DataSourceType.(type) {
case ethcallcommon.Spec:
Expand Down
2 changes: 1 addition & 1 deletion core/evtforward/forwarder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func getTestChainEvent(txid string) *commandspb.ChainEvent {

func TestMigrationTo74(t *testing.T) {
evtFwd := getTestEvtFwd(t)
ctx := vgcontext.WithSnapshotInfo(context.Background(), "v0.73.13", true)
ctx := vgcontext.WithSnapshotInfo(context.Background(), "v0.73.14", true)
evtFwd.top.EXPECT().AllNodeIDs().AnyTimes().Return(testAllPubKeys)

hashes := []string{
Expand Down
2 changes: 1 addition & 1 deletion core/evtforward/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (f *Forwarder) restore(ctx context.Context, p *types.PayloadEventForwarder)
}

// upgrading from 73.12, we need to load previous snapshot format
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
// add at 0 time, so it's always way in the past.
bucket := &ackedEvtBucket{
ts: 0,
Expand Down
2 changes: 1 addition & 1 deletion core/execution/engine_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (e *Engine) restoreSpotMarket(ctx context.Context, em *types.ExecSpotMarket
func (e *Engine) restoreMarket(ctx context.Context, em *types.ExecMarket) (*future.Market, error) {
marketConfig := em.Market
// ensure the default chain ID is set, can be removed after protocol upgrade
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
e.ensureChainIDSet(marketConfig)
}

Expand Down
2 changes: 1 addition & 1 deletion core/execution/future/market_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func NewMarketFromSnapshot(

as := monitor.NewAuctionStateFromSnapshot(mkt, em.AuctionState)

if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
// protocol upgrade from v0.73.12, lets populate the new liquidity-fee-settings with a default marginal-cost method
log.Info("migrating liquidity fee settings for existing market", logging.String("mid", mkt.ID))
mkt.Fees.LiquidityFeeSettings = &types.LiquidityFeeSettings{
Expand Down
2 changes: 1 addition & 1 deletion core/execution/future/market_snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func TestRestoreMarketUpgradeV0_73_2(t *testing.T) {
em.Market.Fees.LiquidityFeeSettings = nil

// and set in the context the information that says we are upgrading
ctx := vegacontext.WithSnapshotInfo(context.Background(), "v0.73.13", true)
ctx := vegacontext.WithSnapshotInfo(context.Background(), "v0.73.14", true)
snap, err := newMarketFromSnapshot(t, ctx, ctrl, em, oracleEngine)
require.NoError(t, err)
require.NotEmpty(t, snap)
Expand Down
12 changes: 6 additions & 6 deletions core/governance/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (e *Engine) restoreActiveProposals(ctx context.Context, active *types.Gover
vevts := []events.Event{}
e.log.Debug("restoring active proposals snapshot", logging.Int("nproposals", len(active.Proposals)))
for _, p := range active.Proposals {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
e.ensureChainIDSet(p.Proposal)
}
pp := &proposal{
Expand All @@ -265,7 +265,7 @@ func (e *Engine) restoreActiveProposals(ctx context.Context, active *types.Gover
invalidVotes: votesAsMap(p.Invalid),
}

if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
if nm := pp.Proposal.Terms.GetNewMarket(); nm != nil {
e.log.Info("migrating liquidity fee settings for new market proposal", logging.String("pid", pp.ID))
nm.Changes.LiquidityFeeSettings = &types.LiquidityFeeSettings{
Expand All @@ -279,7 +279,7 @@ func (e *Engine) restoreActiveProposals(ctx context.Context, active *types.Gover
}
}
}
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
if pp.Terms.IsNewMarket() {
pp.Terms.GetNewMarket().Changes.MarkPriceConfiguration = defaultMarkPriceConfig.DeepClone()
}
Expand Down Expand Up @@ -324,7 +324,7 @@ func (e *Engine) restoreBatchActiveProposals(ctx context.Context, active *types.
e.log.Debug("restoring active proposals snapshot", logging.Int("nproposals", len(active.BatchProposals)))
for _, bpp := range active.BatchProposals {
bpt := types.BatchProposalFromSnapshotProto(bpp.BatchProposal.Proposal, bpp.Proposals)
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
e.ensureChainIDSet(bpt.Proposals...)
}
bp := &batchProposal{
Expand All @@ -336,7 +336,7 @@ func (e *Engine) restoreBatchActiveProposals(ctx context.Context, active *types.

evts = append(evts, events.NewProposalEventFromProto(ctx, bp.BatchProposal.ToProto()))
for _, p := range bp.BatchProposal.Proposals {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
if p.Terms.IsNewMarket() {
p.Terms.GetNewMarket().Changes.MarkPriceConfiguration = defaultMarkPriceConfig.DeepClone()
}
Expand Down Expand Up @@ -380,7 +380,7 @@ func (e *Engine) restoreEnactedProposals(ctx context.Context, enacted *types.Gov
vevts := []events.Event{}
e.log.Debug("restoring enacted proposals snapshot", logging.Int("nproposals", len(enacted.Proposals)))
for _, p := range enacted.Proposals {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
e.ensureChainIDSet(p.Proposal)
}
pp := &proposal{
Expand Down
2 changes: 1 addition & 1 deletion core/products/perpetual_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func NewPerpetualFromSnapshot(
perps.startedAt = state.StartedAt
perps.seq = state.Seq

if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.13") {
if vgcontext.InProgressUpgradeFrom(ctx, "v0.73.14") {
// do it the old way where we'd regenerate the cached values by adding the points again
perps.externalTWAP = NewCachedTWAP(log, state.StartedAt, perps.auctions)
perps.internalTWAP = NewCachedTWAP(log, state.StartedAt, perps.auctions)
Expand Down
19 changes: 10 additions & 9 deletions protos/blockexplorer/api/v1/blockexplorer.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions protos/data-node/api/v2/trading_data.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion protos/sources/blockexplorer/api/v1/blockexplorer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ option go_package = "code.vegaprotocol.io/vega/protos/blockexplorer/api/v1";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Vega block explorer APIs";
version: "v0.74.2";
version: "v0.74.3-preview.1";
}
schemes: [
HTTP,
Expand Down
2 changes: 1 addition & 1 deletion protos/sources/data-node/api/v2/trading_data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ option go_package = "code.vegaprotocol.io/vega/protos/data-node/api/v2";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Vega data node APIs";
version: "v0.74.2";
version: "v0.74.3-preview.1";
}
schemes: [
HTTP,
Expand Down
2 changes: 1 addition & 1 deletion protos/sources/vega/api/v1/core.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ option go_package = "code.vegaprotocol.io/vega/protos/vega/api/v1";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Vega core APIs";
version: "v0.74.2";
version: "v0.74.3-preview.1";
}
schemes: [
HTTP,
Expand Down
2 changes: 1 addition & 1 deletion protos/sources/vega/api/v1/corestate.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ option go_package = "code.vegaprotocol.io/vega/protos/vega/api/v1";
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
title: "Vega core state APIs";
version: "v0.74.2";
version: "v0.74.3-preview.1";
}
schemes: [
HTTP,
Expand Down
13 changes: 7 additions & 6 deletions protos/vega/api/v1/core.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions protos/vega/api/v1/corestate.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

var (
cliVersionHash = ""
cliVersion = "v0.74.2"
cliVersion = "v0.74.3-preview.1"
)

func init() {
Expand Down

0 comments on commit 8a5dd55

Please sign in to comment.