From e4448331a103c5f713a75933006010a9400a349c Mon Sep 17 00:00:00 2001 From: anilCSE Date: Thu, 23 Jan 2020 13:44:56 +0530 Subject: [PATCH 1/5] Add patagonia1 proposal handler --- app/app.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/app.go b/app/app.go index 807f50c687..b05ede1bea 100644 --- a/app/app.go +++ b/app/app.go @@ -203,8 +203,9 @@ func NewXrnApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bo app.crisisKeeper = crisis.NewKeeper(crisisSubspace, invCheckPeriod, app.distrKeeper, app.bankKeeper, app.feeCollectionKeeper) app.upgradeKeeper = upgrade.NewKeeper(app.upgradeStoreKey, app.cdc) - // this configures a no-op upgrade handler for the "el-choco" upgrade - app.upgradeKeeper.SetUpgradeHandler("amazonas", func(ctx sdk.Context, plan upgrade.Plan) { + + // this configures a no-op upgrade handler for the "patagonia" upgrade + app.upgradeKeeper.SetUpgradeHandler("patagonia1", func(ctx sdk.Context, plan upgrade.Plan) { // Add some more coins to the faucet account addr, err := sdk.AccAddressFromBech32("xrn:1xrsmkqh305m09tc5x73v4t3wtcuqmf6cgy2taw") if err == nil { From 506683df322430a4e082a36b118e843722130b6e Mon Sep 17 00:00:00 2001 From: anilCSE Date: Thu, 23 Jan 2020 14:58:36 +0530 Subject: [PATCH 2/5] Add patagonia2 upgrade handler --- app/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index b05ede1bea..ad85137690 100644 --- a/app/app.go +++ b/app/app.go @@ -205,7 +205,7 @@ func NewXrnApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bo app.upgradeKeeper = upgrade.NewKeeper(app.upgradeStoreKey, app.cdc) // this configures a no-op upgrade handler for the "patagonia" upgrade - app.upgradeKeeper.SetUpgradeHandler("patagonia1", func(ctx sdk.Context, plan upgrade.Plan) { + app.upgradeKeeper.SetUpgradeHandler("patagonia2", func(ctx sdk.Context, plan upgrade.Plan) { // Add some more coins to the faucet account addr, err := sdk.AccAddressFromBech32("xrn:1xrsmkqh305m09tc5x73v4t3wtcuqmf6cgy2taw") if err == nil { From a0b8d0db519d858f81b53c1b663a114280d7f4b1 Mon Sep 17 00:00:00 2001 From: anilCSE Date: Thu, 23 Jan 2020 15:07:06 +0530 Subject: [PATCH 3/5] Add papua upgrade handler --- app/app.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/app.go b/app/app.go index ad85137690..695159cc09 100644 --- a/app/app.go +++ b/app/app.go @@ -205,12 +205,7 @@ func NewXrnApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bo app.upgradeKeeper = upgrade.NewKeeper(app.upgradeStoreKey, app.cdc) // this configures a no-op upgrade handler for the "patagonia" upgrade - app.upgradeKeeper.SetUpgradeHandler("patagonia2", func(ctx sdk.Context, plan upgrade.Plan) { - // Add some more coins to the faucet account - addr, err := sdk.AccAddressFromBech32("xrn:1xrsmkqh305m09tc5x73v4t3wtcuqmf6cgy2taw") - if err == nil { - _, _ = app.bankKeeper.AddCoins(ctx, addr, sdk.Coins{sdk.Coin{Denom: "tree", Amount: sdk.NewInt(10000000)}}) - } + app.upgradeKeeper.SetUpgradeHandler("papua", func(ctx sdk.Context, plan upgrade.Plan) { }) // register the proposal types From 173ebb33041dc702a5b7072aa15c043f080262bb Mon Sep 17 00:00:00 2001 From: anilCSE Date: Thu, 23 Jan 2020 16:38:03 +0530 Subject: [PATCH 4/5] Add darien-gap handler --- app/app.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/app.go b/app/app.go index 695159cc09..1d7c057cf8 100644 --- a/app/app.go +++ b/app/app.go @@ -205,7 +205,12 @@ func NewXrnApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bo app.upgradeKeeper = upgrade.NewKeeper(app.upgradeStoreKey, app.cdc) // this configures a no-op upgrade handler for the "patagonia" upgrade - app.upgradeKeeper.SetUpgradeHandler("papua", func(ctx sdk.Context, plan upgrade.Plan) { + app.upgradeKeeper.SetUpgradeHandler("darien-gap", func(ctx sdk.Context, plan upgrade.Plan) { + // Add some more coins to the faucet account + addr, err := sdk.AccAddressFromBech32("xrn:1xrsmkqh305m09tc5x73v4t3wtcuqmf6cgy2taw") + if err == nil { + _, _ = app.bankKeeper.AddCoins(ctx, addr, sdk.Coins{sdk.Coin{Denom: "tree", Amount: sdk.NewInt(10000000)}}) + } }) // register the proposal types From d5e0b974b96b1c1c904d066773694224e78a5eb2 Mon Sep 17 00:00:00 2001 From: anilCSE Date: Fri, 24 Jan 2020 01:00:25 +0530 Subject: [PATCH 5/5] Add patagonia proposal upgrade handler --- app/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/app.go b/app/app.go index 1d7c057cf8..30a31f1ffb 100644 --- a/app/app.go +++ b/app/app.go @@ -205,9 +205,9 @@ func NewXrnApp(logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bo app.upgradeKeeper = upgrade.NewKeeper(app.upgradeStoreKey, app.cdc) // this configures a no-op upgrade handler for the "patagonia" upgrade - app.upgradeKeeper.SetUpgradeHandler("darien-gap", func(ctx sdk.Context, plan upgrade.Plan) { + app.upgradeKeeper.SetUpgradeHandler("patagonia", func(ctx sdk.Context, plan upgrade.Plan) { // Add some more coins to the faucet account - addr, err := sdk.AccAddressFromBech32("xrn:1xrsmkqh305m09tc5x73v4t3wtcuqmf6cgy2taw") + addr, err := sdk.AccAddressFromBech32("xrn:1vkxgpw4xtyeljzvqnxxy84kpa6udqaqw8leqjg") if err == nil { _, _ = app.bankKeeper.AddCoins(ctx, addr, sdk.Coins{sdk.Coin{Denom: "tree", Amount: sdk.NewInt(10000000)}}) }