From 2d557cba1255ce415bd16bc679acc58eef0e9e00 Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Thu, 24 Oct 2024 07:12:20 -0600 Subject: [PATCH 1/5] Suppress scope value owner migration events. (#2195) * Create a no-op event manager and use that during the metadata module migration. * Do not suppress the events for a testnet upgrade since they were emitted when the migration ran on testnet. * Add changelog entry. --- .../improvements/2195-hide-md-mig-events.md | 1 + internal/sdk/events.go | 46 +++++++++++++++++++ x/metadata/keeper/migrations_v4.go | 8 ++++ 3 files changed, 55 insertions(+) create mode 100644 .changelog/unreleased/improvements/2195-hide-md-mig-events.md create mode 100644 internal/sdk/events.go diff --git a/.changelog/unreleased/improvements/2195-hide-md-mig-events.md b/.changelog/unreleased/improvements/2195-hide-md-mig-events.md new file mode 100644 index 000000000..82965304d --- /dev/null +++ b/.changelog/unreleased/improvements/2195-hide-md-mig-events.md @@ -0,0 +1 @@ +* Suppress the events emitted during the metadata migration that changes how scope value owners are recorded [PR 2195](https://github.com/provenance-io/provenance/pull/2195). diff --git a/internal/sdk/events.go b/internal/sdk/events.go new file mode 100644 index 000000000..783ca3745 --- /dev/null +++ b/internal/sdk/events.go @@ -0,0 +1,46 @@ +package sdk + +import ( + abci "github.com/cometbft/cometbft/abci/types" + + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/gogoproto/proto" +) + +// NoOpEventManager is an event manager that satisfies the sdk.EventManagerI interface, but does nothing. +type NoOpEventManager struct{} + +var _ sdk.EventManagerI = (*NoOpEventManager)(nil) + +// NewNoOpEventManager returns a new event manager that does nothing. +func NewNoOpEventManager() *NoOpEventManager { + return &NoOpEventManager{} +} + +// Events returns sdk.EmptyEvents(). +func (x NoOpEventManager) Events() sdk.Events { + // Returning sdk.EmptyEvents() here (instead of nil) to match sdk.EventManager behavior. + return sdk.EmptyEvents() +} + +// ABCIEvents returns sdk.EmptyABCIEvents(). +func (x NoOpEventManager) ABCIEvents() []abci.Event { + // Returning sdk.EmptyABCIEvents() here (instead of nil) to match sdk.EventManager behavior. + return sdk.EmptyABCIEvents() +} + +// EmitTypedEvent ignores the provided argument, does nothing, and always returns nil. +func (x NoOpEventManager) EmitTypedEvent(_ proto.Message) error { + return nil +} + +// EmitTypedEvents ignores the provided arguments, does nothing, and always returns nil. +func (x NoOpEventManager) EmitTypedEvents(_ ...proto.Message) error { + return nil +} + +// EmitEvent ignores the provided event and does nothing. +func (x NoOpEventManager) EmitEvent(_ sdk.Event) {} + +// EmitEvents ignores the provided events and does nothing. +func (x NoOpEventManager) EmitEvents(_ sdk.Events) {} diff --git a/x/metadata/keeper/migrations_v4.go b/x/metadata/keeper/migrations_v4.go index a9b89ec25..36a1ae062 100644 --- a/x/metadata/keeper/migrations_v4.go +++ b/x/metadata/keeper/migrations_v4.go @@ -10,12 +10,20 @@ import ( "github.com/cosmos/cosmos-sdk/types/address" "github.com/cosmos/gogoproto/proto" + internalsdk "github.com/provenance-io/provenance/internal/sdk" markertypes "github.com/provenance-io/provenance/x/marker/types" "github.com/provenance-io/provenance/x/metadata/types" ) // Migrate3To4 will update the metadata store from version 3 to version 4. This should be part of the viridian upgrade. func (m Migrator) Migrate3To4(ctx sdk.Context) error { + // This migration emits too many events and can cause problems with nodes due to its size. + // So we'll just throw all of them away by swapping in a different event manager here. + // But the testnet migration already ran using v1.20.0-rc2 which included all of the events in the block result. + // So, to keep v1.20.0-rc2 and v1.20.0 state compatible, we only throw out the events when not on a testnet. + if sdk.GetConfig().GetBech32AccountAddrPrefix() != "tp" { + ctx = ctx.WithEventManager(internalsdk.NewNoOpEventManager()) + } logger := m.keeper.Logger(ctx) logger.Info("Starting migration of x/metadata from 3 to 4.") if err := migrateValueOwners(ctx, newKeeper3To4(m.keeper)); err != nil { From 1722068e3b17240e18ef9a50e99d2eeb9d9473b3 Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Thu, 24 Oct 2024 10:26:20 -0600 Subject: [PATCH 2/5] Update all the spec proto links to reference v1.20.0 (#2192) * Update all the spec proto links to reference v1.20.0 (instead of 1.19.0). * Add changelog entry. --- .../2192-use-v1-20-0-in-spec-links.md | 1 + x/exchange/spec/02_state.md | 2 +- x/exchange/spec/03_messages.md | 128 +++++++++--------- x/exchange/spec/05_queries.md | 96 ++++++------- x/exchange/spec/06_params.md | 4 +- x/hold/spec/04_queries.md | 10 +- x/marker/spec/01_state.md | 6 +- x/marker/spec/03_messages.md | 84 ++++++------ x/marker/spec/10_governance.md | 16 +-- x/metadata/spec/02_state.md | 14 +- x/metadata/spec/03_messages.md | 92 ++++++------- x/metadata/spec/05_queries.md | 92 ++++++------- x/oracle/spec/03_messages.md | 8 +- x/oracle/spec/04_queries.md | 8 +- x/oracle/spec/06_genesis.md | 2 +- x/quarantine/spec/03_messages.md | 12 +- x/quarantine/spec/05_queries.md | 16 +-- x/sanction/spec/03_messages.md | 6 +- x/sanction/spec/05_queries.md | 20 +-- x/trigger/spec/02_state.md | 12 +- x/trigger/spec/03_messages.md | 8 +- x/trigger/spec/04_queries.md | 8 +- x/trigger/spec/07_genesis.md | 2 +- 23 files changed, 324 insertions(+), 323 deletions(-) create mode 100644 .changelog/unreleased/improvements/2192-use-v1-20-0-in-spec-links.md diff --git a/.changelog/unreleased/improvements/2192-use-v1-20-0-in-spec-links.md b/.changelog/unreleased/improvements/2192-use-v1-20-0-in-spec-links.md new file mode 100644 index 000000000..fb7e4061b --- /dev/null +++ b/.changelog/unreleased/improvements/2192-use-v1-20-0-in-spec-links.md @@ -0,0 +1 @@ +* Update the proto file links in the spec docs to point to `v1.20.0` (instead of `v1.19.0`) [PR 2192](https://github.com/provenance-io/provenance/pull/2192). diff --git a/x/exchange/spec/02_state.md b/x/exchange/spec/02_state.md index fe61cc8c3..5f6c1f2d4 100644 --- a/x/exchange/spec/02_state.md +++ b/x/exchange/spec/02_state.md @@ -220,7 +220,7 @@ Commitment Settlement Bips is stored as a uint16. Each market has an associated `MarketAccount` with an address derived from the `market_id`. Each `MarketAccount` is stored using the `Accounts` module. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/market.proto#L14-L26 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/market.proto#L14-L26 ### Market Details diff --git a/x/exchange/spec/03_messages.md b/x/exchange/spec/03_messages.md index f892b40d3..b39718c8a 100644 --- a/x/exchange/spec/03_messages.md +++ b/x/exchange/spec/03_messages.md @@ -65,15 +65,15 @@ It is expected to fail if: #### MsgCreateAskRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L125-L133 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L125-L133 #### AskOrder -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/orders.proto#L30-L56 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/orders.proto#L30-L56 #### MsgCreateAskResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L135-L139 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L135-L139 ### CreateBid @@ -98,15 +98,15 @@ It is expected to fail if: #### MsgCreateBidRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L141-L149 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L141-L149 #### BidOrder -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/orders.proto#L58-L86 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/orders.proto#L58-L86 #### MsgCreateBidResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L151-L155 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L151-L155 ### CommitFunds @@ -123,11 +123,11 @@ It is expected to fail if: #### MsgCommitFundsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L157-L176 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L157-L176 #### MsgCommitFundsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L178-L179 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L178-L179 ### CancelOrder @@ -149,11 +149,11 @@ It is expected to fail if: #### MsgCancelOrderRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L181-L191 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L181-L191 #### MsgCancelOrderResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L193-L194 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L193-L194 ### FillBids @@ -180,11 +180,11 @@ It is expected to fail if: #### MsgFillBidsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L196-L220 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L196-L220 #### MsgFillBidsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L222-L223 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L222-L223 ### FillAsks @@ -211,11 +211,11 @@ It is expected to fail if: #### MsgFillAsksRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L225-L250 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L225-L250 #### MsgFillAsksResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L252-L253 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L252-L253 ## Market Endpoints @@ -250,11 +250,11 @@ It is expected to fail if: #### MsgMarketSettleRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L255-L272 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L255-L272 #### MsgMarketSettleResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L274-L275 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L274-L275 ### MarketCommitmentSettle @@ -271,11 +271,11 @@ It is expected to fail if: #### MsgMarketCommitmentSettleRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L277-L297 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L277-L297 #### MsgMarketCommitmentSettleResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L299-L300 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L299-L300 ### MarketReleaseCommitments @@ -292,11 +292,11 @@ It is expected to fail if: #### MsgMarketReleaseCommitmentsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L302-L315 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L302-L315 #### MsgMarketReleaseCommitmentsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L317-L318 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L317-L318 ### MarketSetOrderExternalID @@ -318,11 +318,11 @@ It is expected to fail if: #### MsgMarketSetOrderExternalIDRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L320-L334 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L320-L334 #### MsgMarketSetOrderExternalIDResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L336-L337 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L336-L337 ### MarketWithdraw @@ -339,11 +339,11 @@ It is expected to fail if: #### MsgMarketWithdrawRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L339-L357 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L339-L357 #### MsgMarketWithdrawResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L359-L360 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L359-L360 ### MarketUpdateDetails @@ -358,13 +358,13 @@ It is expected to fail if: #### MsgMarketUpdateDetailsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L362-L373 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L362-L373 See also: [MarketDetails](#marketdetails). #### MsgMarketUpdateDetailsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L375-L376 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L375-L376 ### MarketUpdateAcceptingOrders @@ -381,11 +381,11 @@ It is expected to fail if: #### MsgMarketUpdateAcceptingOrdersRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L402-L413 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L402-L413 #### MsgMarketUpdateAcceptingOrdersResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L415-L416 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L415-L416 ### MarketUpdateUserSettle @@ -403,11 +403,11 @@ It is expected to fail if: #### MsgMarketUpdateUserSettleRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L418-L431 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L418-L431 #### MsgMarketUpdateUserSettleResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L433-L434 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L433-L434 ### MarketUpdateAcceptingCommitments @@ -426,11 +426,11 @@ It is expected to fail if: #### MsgMarketUpdateAcceptingCommitmentsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L436-L449 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L436-L449 #### MsgMarketUpdateAcceptingCommitmentsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L451-L452 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L451-L452 ### MarketUpdateIntermediaryDenom @@ -445,11 +445,11 @@ It is expected to fail if: #### MsgMarketUpdateIntermediaryDenomRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L454-L465 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L454-L465 #### MsgMarketUpdateIntermediaryDenomResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L467-L468 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L467-L468 ### MarketManagePermissions @@ -466,13 +466,13 @@ It is expected to fail if: #### MsgMarketManagePermissionsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L470-L485 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L470-L485 See also: [AccessGrant](#accessgrant) and [Permission](#permission). #### MsgMarketManagePermissionsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L487-L488 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L487-L488 ### MarketManageReqAttrs @@ -490,11 +490,11 @@ It is expected to fail if: #### MsgMarketManageReqAttrsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L490-L511 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L490-L511 #### MsgMarketManageReqAttrsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L513-L514 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L513-L514 ## Payment Endpoints @@ -527,15 +527,15 @@ It is expected to fail if: #### MsgCreatePaymentRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L516-L523 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L516-L523 #### Payment -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/payments.proto#L14-L52 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/payments.proto#L14-L52 #### MsgCreatePaymentResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L525-L526 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L525-L526 ### AcceptPayment @@ -554,13 +554,13 @@ It is expected to fail if: #### MsgAcceptPaymentRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L528-L535 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L528-L535 See also: [Payment](#payment). #### MsgAcceptPaymentResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L537-L538 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L537-L538 ### RejectPayment @@ -575,11 +575,11 @@ It is expected to fail if: #### MsgRejectPaymentRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L540-L550 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L540-L550 #### MsgRejectPaymentResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L552-L553 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L552-L553 ### RejectPayments @@ -594,11 +594,11 @@ It is expected to fail if: #### MsgRejectPaymentsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L555-L563 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L555-L563 #### MsgRejectPaymentsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L565-L566 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L565-L566 ### CancelPayments @@ -613,11 +613,11 @@ It is expected to fail if: #### MsgCancelPaymentsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L568-L576 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L568-L576 #### MsgCancelPaymentsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L578-L579 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L578-L579 ### ChangePaymentTarget @@ -637,11 +637,11 @@ It is expected to fail if: #### MsgChangePaymentTargetRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L581-L591 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L581-L591 #### MsgChangePaymentTargetResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L593-L594 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L593-L594 ## Governance Proposals @@ -667,15 +667,15 @@ It is expected to fail if: #### MsgGovCreateMarketRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L596-L607 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L596-L607 #### Market -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/market.proto#L52-L148 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/market.proto#L52-L148 #### MarketDetails -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/market.proto#L28-L40 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/market.proto#L28-L40 * The `name` is limited to 250 characters max. * The `description` is limited to 2000 characters max. @@ -684,19 +684,19 @@ It is expected to fail if: #### FeeRatio -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/market.proto#L150-L158 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/market.proto#L150-L158 #### AccessGrant -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/market.proto#L160-L166 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/market.proto#L160-L166 #### Permission -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/market.proto#L168-L186 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/market.proto#L168-L186 #### MsgGovCreateMarketResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L609-L610 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L609-L610 ### GovManageFees @@ -710,13 +710,13 @@ It is expected to fail if: #### MsgGovManageFeesRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L612-L662 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L612-L662 See also: [FeeRatio](#feeratio). #### MsgGovManageFeesResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L664-L665 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L664-L665 ### GovCloseMarket @@ -730,11 +730,11 @@ It is expected to fail if: #### MsgGovCloseMarketRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L667-L675 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L667-L675 #### MsgGovCloseMarketResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L677-L678 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L677-L678 ### UpdateParams @@ -746,10 +746,10 @@ It is expected to fail if: #### MsgUpdateParamsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L699-L708 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L699-L708 See also: [Params](06_params.md#params). #### MsgUpdateParamsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/tx.proto#L710-L711 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/tx.proto#L710-L711 diff --git a/x/exchange/spec/05_queries.md b/x/exchange/spec/05_queries.md index d448ca6e7..7ebaf2672 100644 --- a/x/exchange/spec/05_queries.md +++ b/x/exchange/spec/05_queries.md @@ -48,13 +48,13 @@ Then choose one entry from each of `settlement_flat_fee_options` and `settlement ### QueryOrderFeeCalcRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L157-L164 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L157-L164 See also: [AskOrder](03_messages.md#askorder), and [BidOrder](03_messages.md#bidorder). ### QueryOrderFeeCalcResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L166-L185 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L166-L185 ## GetOrder @@ -63,15 +63,15 @@ Use the `GetOrder` query to look up an order by its id. ### QueryGetOrderRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L187-L191 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L187-L191 ### QueryGetOrderResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L193-L197 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L193-L197 ### Order -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/orders.proto#L15-L28 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/orders.proto#L15-L28 See also: [AskOrder](03_messages.md#askorder), and [BidOrder](03_messages.md#bidorder). @@ -82,11 +82,11 @@ Orders with external ids can be looked up using the `GetOrderByExternalID` query ### QueryGetOrderByExternalIDRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L199-L205 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L199-L205 ### QueryGetOrderByExternalIDResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L207-L211 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L207-L211 See also: [Order](#order). @@ -100,11 +100,11 @@ This query is paginated. ### QueryGetMarketOrdersRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L213-L224 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L213-L224 ### QueryGetMarketOrdersResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L226-L233 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L226-L233 See also: [Order](#order). @@ -118,11 +118,11 @@ This query is paginated. ### QueryGetOwnerOrdersRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L235-L246 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L235-L246 ### QueryGetOwnerOrdersResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L248-L255 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L248-L255 See also: [Order](#order). @@ -136,11 +136,11 @@ This query is paginated. ### QueryGetAssetOrdersRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L257-L268 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L257-L268 ### QueryGetAssetOrdersResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L270-L277 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L270-L277 See also: [Order](#order). @@ -153,11 +153,11 @@ This query is paginated. ### QueryGetAllOrdersRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L279-L283 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L279-L283 ### QueryGetAllOrdersResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L285-L292 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L285-L292 See also: [Order](#order). @@ -168,11 +168,11 @@ To find out how much an account has committed to a market, use the `GetCommitmen ### QueryGetCommitmentRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L294-L300 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L294-L300 ### QueryGetCommitmentResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L302-L311 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L302-L311 ## GetAccountCommitments @@ -181,11 +181,11 @@ To look up the amounts an account has committed to any market, use the `GetAccou ### QueryGetAccountCommitmentsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L313-L317 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L313-L317 ### QueryGetAccountCommitmentsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L319-L323 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L319-L323 ## GetMarketCommitments @@ -194,11 +194,11 @@ To get the amounts committed to a market by any account, use the `GetMarketCommi ### QueryGetMarketCommitmentsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L325-L332 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L325-L332 ### QueryGetMarketCommitmentsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L334-L341 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L334-L341 ## GetAllCommitments @@ -207,11 +207,11 @@ To get all funds committed by any account to any market, use the `GetAllCommitme ### QueryGetAllCommitmentsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L343-L347 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L343-L347 ### QueryGetAllCommitmentsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L349-L356 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L349-L356 ## GetMarket @@ -220,11 +220,11 @@ All the information and setup for a market can be looked up using the `GetMarket ### QueryGetMarketRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L358-L362 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L358-L362 ### QueryGetMarketResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L364-L370 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L364-L370 See also: [Market](03_messages.md#market). @@ -235,15 +235,15 @@ Use the `GetAllMarkets` query to get brief information about all markets. ### QueryGetAllMarketsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L372-L376 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L372-L376 ### QueryGetAllMarketsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L378-L385 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L378-L385 ### MarketBrief -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/market.proto#L42-L50 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/market.proto#L42-L50 ## Params @@ -252,11 +252,11 @@ The exchange module params can be looked up using the `Params` query. ### QueryParamsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L387-L388 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L387-L388 ### QueryParamsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L390-L394 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L390-L394 See also: [Params](06_params.md#params). @@ -267,13 +267,13 @@ To find out the additional tx fee required for a commitment settlement, use the ### QueryCommitmentSettlementFeeCalcRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L396-L406 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L396-L406 See also: [MsgMarketCommitmentSettleRequest](03_messages.md#msgmarketcommitmentsettlerequest). ### QueryCommitmentSettlementFeeCalcResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L408-L435 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L408-L435 ## ValidateCreateMarket @@ -288,13 +288,13 @@ If the result has: ### QueryValidateCreateMarketRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L437-L441 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L437-L441 See also: [MsgGovCreateMarketRequest](03_messages.md#msggovcreatemarketrequest). ### QueryValidateCreateMarketResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L443-L453 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L443-L453 ## ValidateMarket @@ -305,11 +305,11 @@ Any problems detected will be returned in the `error` field. ### QueryValidateMarketRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L455-L459 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L455-L459 ### QueryValidateMarketResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L461-L465 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L461-L465 ## ValidateManageFees @@ -324,13 +324,13 @@ If the result has: ### QueryValidateManageFeesRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L467-L471 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L467-L471 See also: [MsgGovManageFeesRequest](03_messages.md#msggovmanagefeesrequest). ### QueryValidateManageFeesResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L473-L483 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L473-L483 ## GetPayment @@ -339,11 +339,11 @@ Use the `GetPayment` query to look up a payment by `source` and `external_id`. ### QueryGetPaymentRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L485-L491 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L485-L491 ### QueryGetPaymentResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L493-L497 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L493-L497 See also: [Payment](03_messages.md#payment). @@ -356,11 +356,11 @@ This query is paginated. ### QueryGetPaymentsWithSourceRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L499-L506 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L499-L506 ### QueryGetPaymentsWithSourceResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L508-L515 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L508-L515 See also: [Payment](03_messages.md#payment). @@ -373,11 +373,11 @@ This query is paginated. ### QueryGetPaymentsWithTargetRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L517-L524 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L517-L524 ### QueryGetPaymentsWithTargetResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L526-L533 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L526-L533 See also: [Payment](03_messages.md#payment). @@ -390,11 +390,11 @@ This query is paginated. ### QueryGetAllPaymentsRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L535-L539 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L535-L539 ### QueryGetAllPaymentsResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L541-L548 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L541-L548 See also: [Payment](03_messages.md#payment). @@ -405,10 +405,10 @@ The `PaymentFeeCalc` query can be used to calculate the fees for creating or acc ### QueryPaymentFeeCalcRequest -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L550-L554 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L550-L554 See also: [Payment](03_messages.md#payment). ### QueryPaymentFeeCalcResponse -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/query.proto#L556-L572 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/query.proto#L556-L572 diff --git a/x/exchange/spec/06_params.md b/x/exchange/spec/06_params.md index c5b93443c..09c45fc7e 100644 --- a/x/exchange/spec/06_params.md +++ b/x/exchange/spec/06_params.md @@ -23,8 +23,8 @@ See also: [Exchange Fees](01_concepts.md#exchange-fees). ## Params -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/params.proto#L13-L31 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/params.proto#L13-L31 ## DenomSplit -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/exchange/v1/params.proto#L33-L40 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/exchange/v1/params.proto#L33-L40 diff --git a/x/hold/spec/04_queries.md b/x/hold/spec/04_queries.md index a69e971f5..c6a74df17 100644 --- a/x/hold/spec/04_queries.md +++ b/x/hold/spec/04_queries.md @@ -13,11 +13,11 @@ The query takes in an `address` and returns a coins `amount`. Request: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/hold/v1/query.proto#L28-L35 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/hold/v1/query.proto#L28-L35 Response: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/hold/v1/query.proto#L37-L49 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/hold/v1/query.proto#L37-L49 It is expected to fail if the `address` is invalid or missing. @@ -30,14 +30,14 @@ The query takes in pagination parameters and returns a list of `address`/`amount Request: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/hold/v1/query.proto#L51-L58 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/hold/v1/query.proto#L51-L58 Response: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/hold/v1/query.proto#L60-L66 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/hold/v1/query.proto#L60-L66 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/hold/v1/hold.proto#L12-L23 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/hold/v1/hold.proto#L12-L23 It is expected to fail if the pagination parameters are invalid. diff --git a/x/marker/spec/01_state.md b/x/marker/spec/01_state.md index 3564444ae..54faf0ff0 100644 --- a/x/marker/spec/01_state.md +++ b/x/marker/spec/01_state.md @@ -20,7 +20,7 @@ marker is able to perform normal functions such as receiving and holding coins, be queried against for balance information from the `bank` module. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/marker.proto#L28-L59 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/marker.proto#L28-L59 ```go type MarkerAccount struct { @@ -185,7 +185,7 @@ iterator from the auth module. A marker can support multiple distinct net asset values assigned to track settlement pricing information on-chain. The `price` attribute denotes the value assigned to the marker for a specific asset's associated `volume`. For instance, when considering a scenario where 10 billion `nhash` holds a value of 15ยข, the corresponding `volume` should reflect the quantity of 10,000,000,000. The `update_block_height` attribute captures the block height when the update occurred. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/marker.proto#L91-L99 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/marker.proto#L91-L99 ## Params @@ -194,4 +194,4 @@ and defines overall functioning of the marker module. - Params: `Paramsspace("marker") -> legacy_amino(params)` -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/marker.proto#L14-L26 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/marker.proto#L14-L26 diff --git a/x/marker/spec/03_messages.md b/x/marker/spec/03_messages.md index 385982040..cbb0f806a 100644 --- a/x/marker/spec/03_messages.md +++ b/x/marker/spec/03_messages.md @@ -34,9 +34,9 @@ A marker is created using the Add Marker service message. The created marker can not be directly added in an Active (or Cancelled/Destroyed) status. Markers must have a valid supply and denomination value. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L103-L121 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L103-L121 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L123-L124 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L123-L124 This service message is expected to fail if: @@ -66,9 +66,9 @@ If issued via governance proposal, and has a `from_address` of the governance mo Add Access Request is used to add permissions to a marker that allow the specified accounts to perform the specified actions. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L126-L133 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L126-L133 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L135-L136 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L135-L136 This service message is expected to fail if: @@ -89,9 +89,9 @@ and `Active` markers when the caller is currently assigned the `Admin` access ty DeleteAccess Request defines the Msg/DeleteAccess request type -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L138-L145 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L138-L145 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L146-L147 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L146-L147 This service message is expected to fail if: @@ -108,9 +108,9 @@ and `Active` markers when the caller is currently assigned the `Admin` access ty Finalize Request defines the Msg/Finalize request type -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L149-L155 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L149-L155 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L156-L157 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L156-L157 This service message is expected to fail if: @@ -126,9 +126,9 @@ serve as an intermediate step prior to activation that indicates marker configur Activate Request defines the Msg/Activate request type -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L159-L165 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L159-L165 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L166-L167 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L166-L167 This service message is expected to fail if: @@ -149,9 +149,9 @@ float then the `total_supply` value will be set to zero upon activation. Cancel Request defines the Msg/Cancel request type -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L169-L175 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L169-L175 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L176-L177 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L176-L177 This service message is expected to fail if: @@ -169,9 +169,9 @@ This service message is expected to fail if: Delete Request defines the Msg/Delete request type -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L179-L185 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L179-L185 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L186-L187 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L186-L187 This service message is expected to fail if: @@ -187,9 +187,9 @@ This service message is expected to fail if: Mint Request defines the Msg/Mint request type -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L189-L195 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L189-L195 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L196-L197 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L196-L197 This service message is expected to fail if: @@ -205,9 +205,9 @@ This service message is expected to fail if: Burn Request defines the Msg/Burn request type that is used to remove supply of the marker coin from circulation. In order to successfully burn supply the amount to burn must be held by the marker account itself (in escrow). -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L199-L205 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L199-L205 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L206-L207 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L206-L207 This service message is expected to fail if: @@ -224,9 +224,9 @@ Withdraw Request defines the Msg/Withdraw request type and is used to withdraw c NOTE: any denom coin can be held within a marker "in escrow", these values are not restricted to just the denom of the marker itself. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L209-L222 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L209-L222 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L223-L224 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L223-L224 This service message is expected to fail if: @@ -247,9 +247,9 @@ with `TRANSFER` access. If force transfer is not enabled for the marker, the sou permission (via `authz`) to do the transfer. If force transfer is allowed for the marker, the source account does not need to approve of the transfer. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L226-L234 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L226-L234 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L236-L237 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L236-L237 This service message is expected to fail if: @@ -264,9 +264,9 @@ Ibc transfer Request defines the Msg/IbcTransfer request type. The `IbcTransfer NOTE: A transfer request also requires a signature from an account with the transfer permission as well as approval from the account the funds will be withdrawn from. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L239-L248 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L239-L248 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L250-L251 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L250-L251 ## Msg/SetDenomMetadata @@ -274,9 +274,9 @@ SetDenomMetadata Request defines the Msg/SetDenomMetadata request type. This re denom metadata held within the bank module. Denom metadata can be used to provide a more streamlined user experience within block explorers or similar applications. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L253-L260 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L253-L260 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L262-L263 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L262-L263 This service message is expected to fail if: @@ -297,9 +297,9 @@ This service message is expected to fail if: AddFinalizeActivate requested is used for adding, finalizing, and activating a marker in a single request. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L265-L281 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L265-L281 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L283-L284 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L283-L284 This service message is expected to fail if: @@ -316,9 +316,9 @@ This service message is expected to fail if: GrantAllowance grants a fee allowance to the grantee on the granter's account. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L85-L98 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L85-L98 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L100-L101 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L100-L101 This service message is expected to fail if: @@ -332,9 +332,9 @@ This service message is expected to fail if: SupplyIncreaseProposal is a governance-only message for increasing the supply of a marker. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L286-L295 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L286-L295 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L297-L298 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L297-L298 This service message is expected to fail if: @@ -348,9 +348,9 @@ See also: [Governance: Supply Increase Proposal](./10_governance.md#supply-incre UpdateRequiredAttributes allows signers that have transfer authority or via gov proposal to add and remove required attributes from a restricted marker. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L313-L328 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L313-L328 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L330-L331 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L330-L331 This service message is expected to fail if: @@ -363,9 +363,9 @@ This service message is expected to fail if: UpdateSendDenyList allows signers that have transfer authority or via gov proposal to add and remove addresses to the deny send list for a restricted marker. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L367-L381 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L367-L381 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L383-L384 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L383-L384 This service message is expected to fail if: @@ -381,9 +381,9 @@ This service message is expected to fail if: UpdateForcedTransfer allows for the activation or deactivation of forced transfers for a marker. This message must be submitted via governance proposal. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L333-L345 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L333-L345 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L347-L348 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L347-L348 This service message is expected to fail if: @@ -396,9 +396,9 @@ This service message is expected to fail if: SetAccountData allows the association of some data (a string) with a marker. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L350-L362 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L350-L362 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L364-L365 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L364-L365 This endpoint can either be used directly or via governance proposal. @@ -413,9 +413,9 @@ This service message is expected to fail if: AddNetAssetValuesRequest allows for the adding/updating of net asset values for a marker. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L386-L393 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L386-L393 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/tx.proto#L395-L396 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/tx.proto#L395-L396 This endpoint can either be used directly or via governance proposal. diff --git a/x/marker/spec/10_governance.md b/x/marker/spec/10_governance.md index ce2daaae8..b7b016fc7 100644 --- a/x/marker/spec/10_governance.md +++ b/x/marker/spec/10_governance.md @@ -28,7 +28,7 @@ bank module. A further difference from the standard add marker flow is that governance proposals to add a marker can directly set a marker to the `Active` status with the appropriate minting operations performed immediately. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/proposals.proto#L16-L33 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/proposals.proto#L16-L33 This request is expected to fail if: - The governance proposal format (title, description, etc) is invalid @@ -44,7 +44,7 @@ This request is expected to fail if: SupplyIncreaseProposal defines a governance proposal to administer a marker and increase total supply of the marker through minting coin and placing it within the marker or assigning it directly to an account. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/proposals.proto#L35-L47 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/proposals.proto#L35-L47 This request is expected to fail if: - The governance proposal format (title, description, etc) is invalid @@ -55,7 +55,7 @@ This request is expected to fail if: SupplyDecreaseProposal defines a governance proposal to administer a marker and decrease the total supply through burning coin held within the marker -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/proposals.proto#L49-L60 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/proposals.proto#L49-L60 This request is expected to fail if: - The governance proposal format (title, description, etc) is invalid @@ -71,7 +71,7 @@ The chain will panic and halt if: SetAdministratorProposal defines a governance proposal to administer a marker and set administrators with specific access on the marker -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/proposals.proto#L62-L74 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/proposals.proto#L62-L74 This request is expected to fail if: - The governance proposal format (title, description, etc) is invalid @@ -84,7 +84,7 @@ This request is expected to fail if: RemoveAdministratorProposal defines a governance proposal to administer a marker and remove all permissions for a given address -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/proposals.proto#L76-L88 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/proposals.proto#L76-L88 This request is expected to fail if: - The governance proposal format (title, description, etc) is invalid @@ -96,7 +96,7 @@ This request is expected to fail if: ChangeStatusProposal defines a governance proposal to administer a marker to change its status -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/proposals.proto#L90-L101 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/proposals.proto#L90-L101 This request is expected to fail if: - The governance proposal format (title, description, etc) is invalid @@ -111,7 +111,7 @@ This request is expected to fail if: WithdrawEscrowProposal defines a governance proposal to withdraw escrow coins from a marker -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/proposals.proto#L103-L120 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/proposals.proto#L103-L120 This request is expected to fail if: - The governance proposal format (title, description, etc) is invalid @@ -122,7 +122,7 @@ This request is expected to fail if: SetDenomMetadataProposal defines a governance proposal to set the metadata for a denom. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/marker/v1/proposals.proto#L122-L133 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/marker/v1/proposals.proto#L122-L133 This request is expected to fail if: - The governance proposal format (title, description, etc) is invalid diff --git a/x/metadata/spec/02_state.md b/x/metadata/spec/02_state.md index 81c6289b1..e3d3042e2 100644 --- a/x/metadata/spec/02_state.md +++ b/x/metadata/spec/02_state.md @@ -43,7 +43,7 @@ Byte Array Length: `17` #### Scope Values -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/scope.proto#L70-L102 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/scope.proto#L70-L102 ```protobuf // Scope defines a root reference for a collection of records owned by one or more parties. @@ -129,7 +129,7 @@ Byte Array Length: `33` #### Session Values -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/scope.proto#L104-L123 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/scope.proto#L104-L123 ```protobuf // Session defines an execution context against a specific specification instance. @@ -186,7 +186,7 @@ Byte Array Length: `33` #### Record Values -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/scope.proto#L125-L142 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/scope.proto#L125-L142 ```protobuf // A record (of fact) is attached to a session or each consideration output from a contract @@ -242,7 +242,7 @@ Byte Array Length: `17` #### Scope Specification Values -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/specification.proto#L36-L51 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/specification.proto#L36-L51 ```protobuf // ScopeSpecification defines the required parties, resources, conditions, and consideration outputs for a contract @@ -307,7 +307,7 @@ Byte Array Length: `17` #### Contract Specification Values -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/specification.proto#L53-L76 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/specification.proto#L53-L76 ```protobuf // ContractSpecification defines the required parties, resources, conditions, and consideration outputs for a contract @@ -374,7 +374,7 @@ Byte Array Length: `33` #### Record Specification Values -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/specification.proto#L78-L95 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/specification.proto#L78-L95 ```protobuf // RecordSpecification defines the specification for a Record including allowed/required inputs/outputs @@ -420,7 +420,7 @@ Byte Array Length: `21` #### Object Store Locator Values -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/objectstore.proto#L12-L23 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/objectstore.proto#L12-L23 ```protobuf // Defines an Locator object stored on chain, which represents a owner( blockchain address) associated with a endpoint diff --git a/x/metadata/spec/03_messages.md b/x/metadata/spec/03_messages.md index 816d2b785..34f524075 100644 --- a/x/metadata/spec/03_messages.md +++ b/x/metadata/spec/03_messages.md @@ -48,7 +48,7 @@ Scopes are identified using their `scope_id`. #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L93-L119 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L93-L119 The `scope_uuid` field is optional. It should be a uuid formatted as a string using the standard UUID format. @@ -64,7 +64,7 @@ a value owner, it will always have a value owner (until the scope is deleted); i #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L121-L125 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L121-L125 #### Expected failures @@ -84,11 +84,11 @@ A scope is deleted using the `DeleteScope` service method. #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L127-L136 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L127-L136 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L138-L139 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L138-L139 #### Expected failures @@ -103,11 +103,11 @@ Addresses can be added to a scope's data access list using the `AddScopeDataAcce #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L141-L154 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L141-L154 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L156-L157 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L156-L157 #### Expected failures @@ -123,11 +123,11 @@ Addresses can be deleted from a scope's data access list using the `DeleteScopeD #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L159-L172 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L159-L172 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L174-L175 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L174-L175 #### Expected failures @@ -142,11 +142,11 @@ Scope owners can be added to a scope using the `AddScopeOwner` service method. #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L177-L190 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L177-L190 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L192-L193 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L192-L193 #### Expected failures @@ -163,11 +163,11 @@ All owner parties with any of the provided addresses will be removed from the sc #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L195-L208 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L195-L208 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L210-L211 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L210-L211 #### Expected failures @@ -183,11 +183,11 @@ The value owner address of one or more scopes can be updated using the `UpdateVa #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L213-L225 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L213-L225 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L227-L228 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L227-L228 #### Expected failures @@ -203,11 +203,11 @@ All scopes with a given existing value owner address can be updated to have a ne #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L230-L242 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L230-L242 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L244-L245 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L244-L245 #### Expected failures @@ -225,7 +225,7 @@ Sessions are identified using their `session_id`. #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L247-L272 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L247-L272 The `session_id_components` field is optional. If supplied, it will be used to generate the appropriate session id for use in the `session.session_id` field. @@ -236,7 +236,7 @@ If supplied, it will be used to generate the appropriate contract specification #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L287-L291 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L287-L291 #### Expected failures @@ -263,7 +263,7 @@ Records are identified using their `name` and `session_id`. #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L293-L323 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L293-L323 The `session_id_components` field is optional. If supplied, it will be used to generate the appropriate session id for use in the `record.session_id` field. @@ -274,7 +274,7 @@ If supplied, it will be used with `record.name` to generate the appropriate reco #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L325-L329 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L325-L329 #### Expected failures @@ -316,11 +316,11 @@ A record is deleted using the `DeleteRecord` service method. #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L331-L340 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L331-L340 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L342-L343 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L342-L343 #### Expected failures @@ -341,7 +341,7 @@ Scope specifications are identified using their `specification_id`. #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L345-L363 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L345-L363 The `spec_uuid` field is optional. It should be a uuid formatted as a string using the standard UUID format. @@ -349,7 +349,7 @@ If supplied, it will be used to generate the appropriate scope specification id #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L365-L369 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L365-L369 #### Expected failures @@ -373,11 +373,11 @@ A scope specification is deleted using the `DeleteScopeSpecification` service me #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L371-L380 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L371-L380 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L382-L383 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L382-L383 #### Expected failures @@ -394,7 +394,7 @@ Contract specifications are identified using their `specification_id`. #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L385-L403 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L385-L403 The `spec_uuid` field is optional. It should be a uuid formatted as a string using the standard UUID format. @@ -402,7 +402,7 @@ If supplied, it will be used to generate the appropriate contract specification #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L405-L410 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L405-L410 #### Expected failures @@ -430,11 +430,11 @@ This will also delete all record specifications associated with this contract sp #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L447-L456 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L447-L456 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L458-L459 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L458-L459 #### Expected failures @@ -450,11 +450,11 @@ A contract specification can be added to a scope specification using the `AddCon #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L412-L424 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L412-L424 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L426-L427 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L426-L427 #### Expected failures @@ -473,11 +473,11 @@ A contract specification can be removed from a scope specification using the `Ad #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L429-L441 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L429-L441 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L443-L445 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L443-L445 #### Expected failures @@ -497,7 +497,7 @@ Record specifications are identified using their `specification_id`. #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L461-L479 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L461-L479 The `contract_spec_uuid` field is optional. It should be a uuid formatted as a string using the standard UUID format. @@ -505,7 +505,7 @@ If supplied, it will be used with the `specification.name` to generate the appro #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L481-L486 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L481-L486 #### Expected failures @@ -532,11 +532,11 @@ A record specification is deleted using the `DeleteRecordSpecification` service #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L488-L497 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L488-L497 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L499-L500 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L499-L500 #### Expected failures @@ -554,11 +554,11 @@ An Object Store Locator entry is created using the `BindOSLocator` service metho #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L502-L509 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L502-L509 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L511-L514 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L511-L514 #### Expected failures @@ -577,11 +577,11 @@ An Object Store Locator entry is deleted using the `DeleteOSLocator` service met #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L516-L524 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L516-L524 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L526-L529 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L526-L529 #### Expected failures @@ -602,11 +602,11 @@ Object Store Locators are identified by their `owner`. #### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L531-L538 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L531-L538 #### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L540-L543 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L540-L543 #### Expected failures @@ -625,9 +625,9 @@ This service message is expected to fail if: Simple data (a string) can be associated with scopes using the `SetAccountData` service method. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L545-L558 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L545-L558 -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/tx.proto#L560-L561 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/tx.proto#L560-L561 This service message is expected to fail if: * The provided address is not a scope id. diff --git a/x/metadata/spec/05_queries.md b/x/metadata/spec/05_queries.md index f2a0bb88b..8ba8ebe25 100644 --- a/x/metadata/spec/05_queries.md +++ b/x/metadata/spec/05_queries.md @@ -39,12 +39,12 @@ If a requested entry or specification isn't found, an empty wrapper containing o The `Params` query gets the parameters of the metadata module. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L252-L256 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L252-L256 There are no inputs for this query. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L258-L265 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L258-L265 --- @@ -53,7 +53,7 @@ There are no inputs for this query. The `Scope` query gets a scope. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L267-L287 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L267-L287 The `scope_id`, if provided, must either be scope uuid, e.g. `91978ba2-5f35-459a-86a7-feca1b0512e0` or a scope address, e.g. `scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel`. The session addr, if provided, must be a bech32 session address, @@ -73,7 +73,7 @@ By default, sessions and records are not included. Set `include_sessions` and/or `include_records` to true to include sessions and/or records. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L289-L300 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L289-L300 --- @@ -84,12 +84,12 @@ The `ScopesAll` query gets all scopes. This query is paginated. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L312-L321 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L312-L321 The only input to this query is pagination information. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L323-L332 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L323-L332 --- @@ -98,7 +98,7 @@ The only input to this query is pagination information. The `Sessions` query gets sessions. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L334-L357 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L334-L357 The `scope_id` can either be scope uuid, e.g. `91978ba2-5f35-459a-86a7-feca1b0512e0` or a scope address, e.g. `scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel`. Similarly, the `session_id` can either be a uuid or session address, e.g. @@ -127,7 +127,7 @@ By default, the scope and records are not included. Set `include_scope` and/or `include_records` to true to include the scope and/or records. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L359-L370 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L359-L370 --- @@ -138,12 +138,12 @@ The `SessionsAll` query gets all sessions. This query is paginated. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L382-L391 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L382-L391 The only input to this query is pagination information. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L393-L402 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L393-L402 --- @@ -152,7 +152,7 @@ The only input to this query is pagination information. The `Records` query gets records. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L404-L427 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L404-L427 The `record_addr`, if provided, must be a bech32 record address, e.g. `record1q2ge0zaztu65tx5x5llv5xc9ztsw42dq2jdvmdazuwzcaddhh8gmu3mcze3`. The `scope_id` can either be scope uuid, e.g. @@ -176,7 +176,7 @@ By default, the scope and sessions are not included. Set `include_scope` and/or `include_sessions` to true to include the scope and/or sessions. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L429-L440 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L429-L440 --- @@ -187,12 +187,12 @@ The `RecordsAll` query gets all records. This query is paginated. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L452-L461 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L452-L461 The only input to this query is pagination information. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L463-L472 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L463-L472 --- @@ -205,12 +205,12 @@ A scope is owned by an address if the address is listed as either an owner, or t This query is paginated. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L474-L482 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L474-L482 The `address` should be a bech32 address string. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L484-L493 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L484-L493 --- @@ -221,12 +221,12 @@ The `ValueOwnership` query gets gets the ids of scopes that list an address as t This query is paginated. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L495-L503 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L495-L503 The `address` should be a bech32 address string. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L505-L514 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L505-L514 --- @@ -235,13 +235,13 @@ The `address` should be a bech32 address string. The `ScopeSpecification` query gets a scope specification. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L516-L533 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L516-L533 The `specification_id` can either be a uuid, e.g. `dc83ea70-eacd-40fe-9adf-1cf6148bf8a2` or a bech32 scope specification address, e.g. `scopespec1qnwg86nsatx5pl56muw0v9ytlz3qu3jx6m`. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L535-L546 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L535-L546 --- @@ -252,12 +252,12 @@ The `ScopeSpecificationsAll` query gets all scope specifications. This query is paginated. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L556-L565 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L556-L565 The only input to this query is pagination information. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L567-L576 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L567-L576 --- @@ -266,7 +266,7 @@ The only input to this query is pagination information. The `ContractSpecification` query gets a contract specification. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L578-L594 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L578-L594 The `specification_id` can either be a uuid, e.g. `def6bc0a-c9dd-4874-948f-5206e6060a84`, a bech32 contract specification address, e.g. `contractspec1q000d0q2e8w5say53afqdesxp2zqzkr4fn`, or a bech32 record specification @@ -278,7 +278,7 @@ Set `include_record_specs` to true to include them in the result. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L596-L606 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L596-L606 --- @@ -289,12 +289,12 @@ The `ContractSpecificationsAll` query gets all contract specifications. This query is paginated. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L616-L625 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L616-L625 The only input to this query is pagination information. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L627-L636 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L627-L636 --- @@ -306,7 +306,7 @@ The only difference between this query and `ContractSpecification` with `include this query does not return the contract specification. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L638-L652 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L638-L652 The `specification_id` can either be a uuid, e.g. `def6bc0a-c9dd-4874-948f-5206e6060a84`, a bech32 contract specification address, e.g. `contractspec1q000d0q2e8w5say53afqdesxp2zqzkr4fn`, or a bech32 record specification @@ -314,7 +314,7 @@ address, e.g. `recspec1qh00d0q2e8w5say53afqdesxp2zw42dq2jdvmdazuwzcaddhh8gmuqhez address, then the contract specification that contains that record specification is used. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L654-L666 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L654-L666 --- @@ -323,7 +323,7 @@ address, then the contract specification that contains that record specification The `RecordSpecification` query gets a record specification. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L668-L685 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L668-L685 The `specification_id` can either be a uuid, e.g. `def6bc0a-c9dd-4874-948f-5206e6060a84` or a bech32 contract specification address, e.g. `contractspec1q000d0q2e8w5say53afqdesxp2zqzkr4fn`. @@ -335,7 +335,7 @@ It is required if the `specification_id` is a uuid or contract specification add It is ignored if the `specification_id` is a record specification address. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L687-L694 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L687-L694 --- @@ -346,12 +346,12 @@ The `RecordSpecificationsAll` query gets all record specifications. This query is paginated. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L704-L713 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L704-L713 The only input to this query is pagination information. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L715-L724 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L715-L724 --- @@ -361,12 +361,12 @@ The `GetByAddr` query looks up metadata entries and/or specifications for a give The results of this query are not wrapped with id information like the other queries, and only returns the exact entries requested. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L726-L730 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L726-L730 The `addrs` can contain any valid metadata address bech32 strings. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L732-L748 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L732-L748 Any invalid or nonexistent `addrs` will be in the `not_found` list. @@ -376,12 +376,12 @@ Any invalid or nonexistent `addrs` will be in the `not_found` list. The `OSLocatorParams` query gets the parameters of the Object Store Locator sub-module. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L750-L754 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L750-L754 There are no inputs for this query. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L756-L763 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L756-L763 --- @@ -390,12 +390,12 @@ There are no inputs for this query. The `OSLocator` query gets an Object Store Locator for an address. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L765-L771 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L765-L771 The `owner` should be a bech32 address string. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L773-L779 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L773-L779 --- @@ -404,12 +404,12 @@ The `owner` should be a bech32 address string. The `OSLocatorsByURI` query gets the object store locators by URI. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L781-L789 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L781-L789 The `uri` is string the URI to find object store locators for. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L791-L799 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L791-L799 --- @@ -418,13 +418,13 @@ The `uri` is string the URI to find object store locators for. The `OSLocatorsByScope` query gets the object store locators for the owners and value owner of a scope. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L801-L807 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L801-L807 The `scope_id`, must either be scope uuid, e.g. `91978ba2-5f35-459a-86a7-feca1b0512e0` or a scope address, e.g. `scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel` ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L809-L815 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L809-L815 --- @@ -435,12 +435,12 @@ The `OSAllLocators` query gets all object store locators. This query is paginated. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L817-L823 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L817-L823 The only input to this query is pagination information. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L825-L833 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L825-L833 --- ## AccountData @@ -448,9 +448,9 @@ The only input to this query is pagination information. The `AccountData` query gets the account data associated with a scope. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L835-L840 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L835-L840 The `metadata_addr` must be a scope id, e.g. `scope1qzge0zaztu65tx5x5llv5xc9ztsqxlkwel`. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/metadata/v1/query.proto#L842-L846 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/metadata/v1/query.proto#L842-L846 diff --git a/x/oracle/spec/03_messages.md b/x/oracle/spec/03_messages.md index 0b757f2f7..39a8c1a7f 100644 --- a/x/oracle/spec/03_messages.md +++ b/x/oracle/spec/03_messages.md @@ -18,11 +18,11 @@ The oracle's address is modified by proposing the `MsgUpdateOracleRequest` messa ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/oracle/v1/tx.proto#L40-L49 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/oracle/v1/tx.proto#L40-L49 ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/oracle/v1/tx.proto#L51-L52 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/oracle/v1/tx.proto#L51-L52 The message will fail under the following conditions: * The authority does not match the gov module. @@ -34,11 +34,11 @@ Sends a query to another chain's `Oracle` using `ICQ`. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/oracle/v1/tx.proto#L22-L32 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/oracle/v1/tx.proto#L22-L32 ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/oracle/v1/tx.proto#L34-L38 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/oracle/v1/tx.proto#L34-L38 The message will fail under the following conditions: * The authority does not pass basic integrity and format checks. diff --git a/x/oracle/spec/04_queries.md b/x/oracle/spec/04_queries.md index 6890ab7d1..f6a5a09e6 100644 --- a/x/oracle/spec/04_queries.md +++ b/x/oracle/spec/04_queries.md @@ -16,11 +16,11 @@ The `QueryOracleAddress` query is used to obtain the address of the module's ora ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/oracle/v1/query.proto#L25-L26 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/oracle/v1/query.proto#L25-L26 ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/oracle/v1/query.proto#L28-L32 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/oracle/v1/query.proto#L28-L32 --- @@ -29,10 +29,10 @@ The `QueryOracle` query forwards a query to the module's oracle. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/oracle/v1/query.proto#L34-L38 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/oracle/v1/query.proto#L34-L38 ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/oracle/v1/query.proto#L40-L44 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/oracle/v1/query.proto#L40-L44 The data from the `query` field is a `CosmWasm query` forwarded to the `oracle`. diff --git a/x/oracle/spec/06_genesis.md b/x/oracle/spec/06_genesis.md index 48d6c7acd..4d2248910 100644 --- a/x/oracle/spec/06_genesis.md +++ b/x/oracle/spec/06_genesis.md @@ -15,4 +15,4 @@ In this section we describe the processing of the oracle messages and the corres The GenesisState encompasses the upcoming sequence ID for an ICQ packet, the associated parameters, the designated port ID for the module, and the oracle address. These values are both extracted for export and imported for storage within the store. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/oracle/v1/genesis.proto#L10-L19 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/oracle/v1/genesis.proto#L10-L19 diff --git a/x/quarantine/spec/03_messages.md b/x/quarantine/spec/03_messages.md index fd4b99ab4..b3d3e84df 100644 --- a/x/quarantine/spec/03_messages.md +++ b/x/quarantine/spec/03_messages.md @@ -12,7 +12,7 @@ An account can activate quarantine using a `MsgOptIn`. It contains only the address to quarantine. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/tx.proto#L36-L41 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/tx.proto#L35-L40 It is expected to fail if the `to_address` is invalid. @@ -21,7 +21,7 @@ It is expected to fail if the `to_address` is invalid. An account can deactivate quarantine using a `MsgOptOut`. It contains only the address to unquarantine. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/tx.proto#L46-L51 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/tx.proto#L45-L50 It is expected to fail if the `to_address` is invalid. @@ -31,7 +31,7 @@ Quarantined funds can be accepted by the intended receiver using a `MsgAccept`. It contains a `to_address` (receiver) and one or more `from_addresses` (senders). It also contains a flag to indicate whether auto-accept should be set up for all provided addresses. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/tx.proto#L56-L70 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/tx.proto#L55-L69 Any quarantined funds for the `to_address` from any `from_address` are accepted (regardless of whether they've been previously declined). @@ -47,7 +47,7 @@ It is expected to fail if: The response will contain a total of all funds released. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/tx.proto#L72-L81 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/tx.proto#L71-L80 ## Msg/Decline @@ -55,7 +55,7 @@ Quarantined funds can be declined by the intended receiver using a `MsgDecline`. It contains a `to_address` (receiver) and one or more `from_addresses` (senders). It also contains a flag to indicate whether auto-decline should be set up for all provided addresses. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/tx.proto#L83-L97 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/tx.proto#L82-L96 Any quarantined funds for the `to_address` from any `from_address` are declined. @@ -74,7 +74,7 @@ It is expected to fail if: Auto-Responses can be defined either through the `permanent` flags with a `MsgAccept` or `MsgDecline`, or using a `MsgUpdateAutoResponses`. It contains a `to_address` and a list of `updates`. Each `AutoResponseUpdate` contains a `from_address` and the desired `response` for it. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/tx.proto#L102-L111 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/tx.proto#L101-L110 Providing a `response` of `AUTO_RESPONSE_UNSPECIFIED` will cause the applicable entry to be deleted, allowing users to un-set previous auto-responses. diff --git a/x/quarantine/spec/05_queries.md b/x/quarantine/spec/05_queries.md index 7e3d83611..e79ffe3eb 100644 --- a/x/quarantine/spec/05_queries.md +++ b/x/quarantine/spec/05_queries.md @@ -12,11 +12,11 @@ The query takes in a `to_address` and outputs `true` if the address is quarantin Request: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/query.proto#L44-L48 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/query.proto#L44-L48 Response: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/query.proto#L50-L54 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/query.proto#L50-L54 It is expected to fail if the `to_address` is invalid. @@ -27,16 +27,16 @@ This query takes in an optional `to_address` and optional `from_address` and out Request: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/query.proto#L56-L65 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/query.proto#L56-L65 Response: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/query.proto#L67-L74 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/query.proto#L67-L74 QuarantinedFunds: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/quarantine.proto#L11-L26 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/quarantine.proto#L11-L26 - If neither a `to_address` nor `from_address` are provided, all non-declined quarantined funds for any addresses will be returned. - If the request contains a `to_address` but no `from_address`, all non-declined quarantined funds for the `to_address` are returned. @@ -56,16 +56,16 @@ This query takes in a `to_address` and optional `from_address` and outputs infor Request: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/query.proto#L76-L85 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/query.proto#L76-L85 Response: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/query.proto#L87-L94 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/query.proto#L87-L94 AutoResponseEntry: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/quarantine/v1beta1/quarantine.proto#L28-L36 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/quarantine/v1beta1/quarantine.proto#L28-L36 - If no `from_address` is provided, all auto-response entries for the provided `to_address` are returned. The results will not contain any entries for `AUTO_RESPONSE_UNSPECIFIED`. - If a `from_address` is provided, the auto-response setting that `to_address` has from `from_address` is returned. This result might be `AUTO_RESPONSE_UNSPECIFIED`. diff --git a/x/sanction/spec/03_messages.md b/x/sanction/spec/03_messages.md index 346e1c984..6644ccdd9 100644 --- a/x/sanction/spec/03_messages.md +++ b/x/sanction/spec/03_messages.md @@ -12,7 +12,7 @@ All Msg Service endpoints in the `x/sanction` module are for use with governance A user can request that accounts be sanctioned by submitting a governance proposal containing a `MsgSanction`. It contains the list of `addresses` of accounts to be sanctioned and the `authority` able to do it. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/tx.proto#L24-L34 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/tx.proto#L24-L34 If the proposal ever has enough total deposit (defined in params), immediate temporary sanctions are issued for each address. Temporary sanctions expire at the completion of the governance proposal regardless of outcome. @@ -31,7 +31,7 @@ It is expected to fail if: A user can request that accounts be unsanctioned by submitting a governance proposal containing a `MsgUnsanction`. It contains the list of `addresses` of accounts to be unsanctioned and the `authority` able to do it. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/tx.proto#L39-L49 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/tx.proto#L39-L49 If the proposal ever has enough total deposit (defined in params), immediate temporary unsanctions are issued for each address. Temporary unsanctions expire at the completion of the governance proposal regardless of outcome. @@ -49,7 +49,7 @@ It is expected to fail if: The sanction module params can be updated by submitting a governance proposal containing a `MsgUpdateParams`. It contains the desired new `params` and the `authority` able to update them. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/tx.proto#L54-L64 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/tx.proto#L54-L64 If `params` is `null`, they will be deleted from state, reverting them to their code-defined defaults. If a field in `params` is `null` or empty, the record in state will reflect that. diff --git a/x/sanction/spec/05_queries.md b/x/sanction/spec/05_queries.md index 56b34f50a..5ad52649a 100644 --- a/x/sanction/spec/05_queries.md +++ b/x/sanction/spec/05_queries.md @@ -17,11 +17,11 @@ If it returns `false`, the account *is* allowed to move its funds (at least from Request: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/query.proto#L34-L37 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/query.proto#L34-L37 Response: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/query.proto#L39-L43 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/query.proto#L39-L43 It is expected to fail if the `address` is invalid. @@ -32,11 +32,11 @@ It takes in `pagination` parameters and outputs a list of `addresses`. Request: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/query.proto#L45-L49 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/query.proto#L45-L49 Response: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/query.proto#L51-L58 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/query.proto#L51-L58 This query does not take into account temporary sanctions or temporary unsanctions. Addresses that are temporarily sanctioned (but not permanently sanctioned) are **not** returned by this query. @@ -53,21 +53,21 @@ It takes in `pagination` parameters and an optional `address`. Request: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/query.proto#L60-L67 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/query.proto#L60-L67 Response: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/query.proto#L69-L75 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/query.proto#L69-L75 TemporaryEntry: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/sanction.proto#L36-L44 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/sanction.proto#L36-L44 TempStatus: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/sanction.proto#L46-L56 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/sanction.proto#L46-L56 - If an `address` is provided, only temporary entries associated with that address are returned. - If an `address` is provided that does not have any temporary entries, a single `TemporaryEntry` with a `status` of `TEMP_STATUS_UNSPECIFIED` is returned. @@ -87,11 +87,11 @@ It has no input and outputs the `params`. Request: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/query.proto#L77-L78 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/query.proto#L77-L78 Response: -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/cosmos/sanction/v1beta1/query.proto#L80-L84 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/cosmos/sanction/v1beta1/query.proto#L80-L84 This query returns the values used for the params. That is, if there are params stored in state, they are returned; diff --git a/x/trigger/spec/02_state.md b/x/trigger/spec/02_state.md index 33761e499..2563813cd 100644 --- a/x/trigger/spec/02_state.md +++ b/x/trigger/spec/02_state.md @@ -28,7 +28,7 @@ The excess gas on a MsgCreateTrigger transaction will be used for the `Trigger's * Event Listener: `0x02 | Event Type (32 bytes) | Order (8 bytes) -> []byte{}` * Gas Limit: `0x04 | Trigger ID (8 bytes) -> uint64(GasLimit)` -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/trigger.proto#L13-L25 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/trigger.proto#L13-L25 ### TriggerEventI @@ -38,25 +38,25 @@ A `Trigger` must have an event that implements the `TriggerEventI` interface. Cu The `BlockHeightEvent` allows the user to configure their `Trigger` to fire when the current block's `Block Height` is greater than or equal to the defined one. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/trigger.proto#L39-L46 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/trigger.proto#L39-L46 #### BlockTimeEvent The `BlockTimeEvent` allows the user to configure their `Trigger` to fire when the current block's `Block Time` is greater than or equal to the defined one. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/trigger.proto#L48-L55 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/trigger.proto#L48-L55 #### TransactionEvent The `TransactionEvent` allows the user to configure their `Trigger` to fire when a transaction event matching the user defined one has been emitted. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/trigger.proto#L57-L66 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/trigger.proto#L57-L66 ##### Attribute The `Attribute` is used by the `TransactionEvent` to allow the user to configure which attributes must be present on the transaction event. An `Attribute` with an empty `value` will only require the `name` to match. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/trigger.proto#L68-L76 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/trigger.proto#L68-L76 --- ## Queue @@ -68,4 +68,4 @@ The `Queue` is an internal structure that we use to store and throttle the execu * Queue Start Index: `0x06 -> uint64(QueueStartIndex)` * Queue Length: `0x07 -> uint64(QueueLength)` -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/trigger.proto#L27-L37 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/trigger.proto#L27-L37 diff --git a/x/trigger/spec/03_messages.md b/x/trigger/spec/03_messages.md index ca21f01ef..819b46340 100644 --- a/x/trigger/spec/03_messages.md +++ b/x/trigger/spec/03_messages.md @@ -17,11 +17,11 @@ Creates a `Trigger` that will fire when its event has been detected. If the mess ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/tx.proto#L23-L34 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/tx.proto#L23-L34 ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/tx.proto#L36-L40 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/tx.proto#L36-L40 The message will fail under the following conditions: * The authority is an invalid bech32 address @@ -36,11 +36,11 @@ Destroys a `Trigger` that has been created and is still registered. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/tx.proto#L42-L51 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/tx.proto#L42-L51 ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/tx.proto#L53-L54 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/tx.proto#L53-L54 The message will fail under the following conditions: * The `Trigger` does not exist diff --git a/x/trigger/spec/04_queries.md b/x/trigger/spec/04_queries.md index e430b0b87..8c2bfebb8 100644 --- a/x/trigger/spec/04_queries.md +++ b/x/trigger/spec/04_queries.md @@ -18,13 +18,13 @@ The `QueryTriggerByID` query is used to obtain the content of a specific Trigger ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/query.proto#L25-L29 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/query.proto#L25-L29 The `id` is the unique identifier for the Trigger. ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/query.proto#L31-L35 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/query.proto#L31-L35 --- @@ -34,8 +34,8 @@ The `QueryTriggers` query is used to obtain all Triggers. ### Request -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/query.proto#L37-L41 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/query.proto#L37-L41 ### Response -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/query.proto#L43-L49 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/query.proto#L43-L49 diff --git a/x/trigger/spec/07_genesis.md b/x/trigger/spec/07_genesis.md index 43fd719eb..525b06d33 100644 --- a/x/trigger/spec/07_genesis.md +++ b/x/trigger/spec/07_genesis.md @@ -11,4 +11,4 @@ In this section we describe the processing of the trigger messages and the corre GenesisState contains a list of triggers, queued triggers, and gas limits. It also tracks the triggerID and the queue start. These are exported and later imported from/to the store. -+++ https://github.com/provenance-io/provenance/blob/v1.19.0/proto/provenance/trigger/v1/genesis.proto#L11-L30 ++++ https://github.com/provenance-io/provenance/blob/v1.20.0/proto/provenance/trigger/v1/genesis.proto#L11-L30 From 286ac793b825513380ba0481368d4aa4dfe81328 Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Thu, 24 Oct 2024 10:31:03 -0600 Subject: [PATCH 3/5] When prepping a release, combine the dependency bump changelog entries. (#2181) * Add a note to get-dep-changes to alert folks that changing those formats might break other things. * Create an awk script that will combine dependency changelog entries. Update prep-release to use it. Also apply a couple fixes that are alread in the release branch (and will be in main shortly). Also tweak the step 4 and 5 names to provide more context, and fix the verbose output header when recombining the sections. * Add changelog entry. * Clarify the new comment in get-dep-changes.sh. * Update stuff that uses or talks about RELEASE_NOTES.md because it should actually be RELEASE_CHANGELOG.md. The SDK uses _NOTES but only puts a blurb in there, so it's not a changelog. But we include a changelog, so it makes sense to keep it named that way. --- .changelog/README.md | 8 +- .changelog/combine-dep-lines.awk | 102 ++++++++++++++++++ .changelog/get-dep-changes.sh | 1 + .changelog/prep-release.sh | 47 ++++++-- .../2181-combine-changelog-dep-lines.md | 1 + CONTRIBUTING.md | 4 +- 6 files changed, 146 insertions(+), 17 deletions(-) create mode 100644 .changelog/combine-dep-lines.awk create mode 100644 .changelog/unreleased/improvements/2181-combine-changelog-dep-lines.md diff --git a/.changelog/README.md b/.changelog/README.md index f4a806970..f681b2079 100644 --- a/.changelog/README.md +++ b/.changelog/README.md @@ -230,7 +230,7 @@ If the entry isn't part of a release candidate, then in step 4 it gets moved to When preparing to mark a release, you should use the `.changelog/prep-release.sh` script. That script will: -1. Create or Update the `RELEASE_NOTES.md` file. +1. Create or Update the `RELEASE_CHANGELOG.md` file. 2. Add the new version to the `CHANGELOG.md` file. 3. Create a new version directory in the `.changelog/` folder with content from `unreleased/` and any rcs for this version. @@ -240,14 +240,14 @@ That is, the `.changelog/` directories should only ever exist on the `. This is primarily to reduce confusion if there is a discrepancy between the `CHANGELOG.md` content and an entry file's content. It also helps keep things tidy and file counts lower. -If you need to make tweaks or clarifications to the content, you should make the changes in the `RELEASE_NOTES.md` file first, then copy/paste those into the `CHANGELOG.md` file. +If you need to make tweaks or clarifications to the content, you should make the changes in the `RELEASE_CHANGELOG.md` file first, then copy/paste those into the `CHANGELOG.md` file. You should NOT update the changelog entry files, though (other than moving them). -And to reiterate, the `RELEASE_NOTES.md` file and `.changelog/` directories should never exist on `main`, only in the `.x` branch. +And to reiterate, the `RELEASE_CHANGELOG.md` file and `.changelog/` directories should never exist on `main`, only in the `.x` branch. If you can't, or don't want to use the `.changelog/prep-release.sh` script, here's how to do things manually. -To manually create the new `RELEASE_NOTES.md` file: +To manually create the new `RELEASE_CHANGELOG.md` file: 1. If this is a full version and there were release candidates, move all the rc content into unreleased. 2. Run `unclog build --unreleased` to get the preliminary content. diff --git a/.changelog/combine-dep-lines.awk b/.changelog/combine-dep-lines.awk new file mode 100644 index 000000000..5b05ebe11 --- /dev/null +++ b/.changelog/combine-dep-lines.awk @@ -0,0 +1,102 @@ +# This awk script will process the list of dependency changelog entries. +# It will combine multiple bumps for the same library into a single line. +# +# The lines should have been generated by get-dep-changes.sh and relies on its formatting. +# It's assumed that these entries are sorted by library (alphabetically), then by action ("added", +# "bumped to", or "removed"), then by new version number (in version order). +# +# Example input: +# * `lib1` bumped to v1.2.3 (from v1.2.2) . +# * `lib1` bumped to v1.2.4 (from v1.2.3) . +# * `lib2` bumped to v0.4.5 (from v0.3.1) . +# Gets turned into this: +# * `lib1` bumped to v1.2.4 (from v1.2.2) (, ). +# * `lib2` bumped to v0.4.5 (from v0.3.1) . +# +# If there were three (or more) lib1 lines, then, they'd all be combined similarly. +# +# This also accounts for a possible "but is still replaced by " warning in the line, e.g.: +# * `lib1` bumped to v1.2.3 (from v1.2.2) but is still replaced by . +# If the last line for a lib has that warning, the final line will too, but it's ignored on the other entries. +# +# It allows for the versions to include a replacement library too, e.g. +# * `` bumped to v0.50.10-pio-1 of `` (from v0.50.7-pio-1 of ``) . +# +# Here's the expeced bump line format: +# * `` bumped to [ of ``] (from [ of ``])[ ] . +# Where [] denotes an optional portion. +# And represents a string that we will call "name" (but doesn't necessarily reflect a variable). +# And has the format "[](
)" (the [] and () in that are the actual expected characters). + +# printPrevLib prints the previous library's info and resets things. +function printPrevLib() { + if (LibCount == 1) { + # If there was only one line for this library, just print it without any changes. + # The only real difference between this output and the combined one is the parenthases around the links. + # But I just felt like it'd be best to keep the original when there's nothing being combined. + print LibFirstLine + } else if (LibCount > 1) { + # If there were multiple lines for this library, create a new line for it with all the needed info. + print "* " PrevLib " bumped to " NewVer " (from " OrigVer ")" Warning " (" Links ")." + } + LibCount=0 +} + +{ + # Expected bump line format: "* `` bumped to [ of ``] (from [ of ``])[ ] ." + if (/^\* `.*` bumped to .* \(from .*\).* \[.*[[:digit:]]+\]\(.*\)/) { + # The library is the second thing in the line (first is the "*"). Get it including the ticks. + lib=$2 + + # The link is everything after "(from ...) " up to the last ")". + # This also accounts for a possible warning right before the link (the [^[]* part in this Rx). + link=$0 + sub(/^.*\(from [^)]*\)[^[]* \[/,"[",link) + sub(/\)[^)]*$/,")",link) + + if (lib != PrevLib) { + # This line's library is different from the previous. Print out the previous (if we have one). + printPrevLib() + + # This lib is now the "previous" one and we restart the links list and counter. + PrevLib=lib + Links=link + LibFirstLine=$0 + LibCount=1 + + # The original version is everything between "(from " and the next ")" of the first line for a library. + OrigVer=$0 + sub(/^.*\(from /,"",OrigVer) + sub(/\).*$/,"",OrigVer) + } else { + # This line's library has the same library as the previous, add the link to the list and count it. + Links=Links ", " link + LibCount++ + } + + # The warning will be between "(from ...)" and the " [" of the link. + # It should end up with a leading space character. + # This resets every line so that we only get it from the last line for a library. + Warning="" + if (/\(from [^)]*\) .* \[/) { + Warning=$0 + sub(/^.*\(from [^)]*\)/,"",Warning) + sub(/ \[.*$/,"",Warning) + } + + # The version from this line is now the most recent (so far) for the current library. + # It's everything between "bumped to " and "(from ". + NewVer=$0 + sub(/^.* bumped to /,"",NewVer) + sub(/ \(from .*$/,"",NewVer) + } else { + # Unknown line, print out the previous entry (if there is one), then print out this line. + printPrevLib() + print $0 + } +} + +# Make sure there isn't one left over. +END { + printPrevLib() +} \ No newline at end of file diff --git a/.changelog/get-dep-changes.sh b/.changelog/get-dep-changes.sh index 427622fb8..c778decfe 100755 --- a/.changelog/get-dep-changes.sh +++ b/.changelog/get-dep-changes.sh @@ -334,6 +334,7 @@ for lib in "${libs[@]}"; do [[ -n "$verbose" ]] && printf '[%d/%d]: %s="%s" %s="%s" %s="%s"\n' "$i" "${#libs[@]}" 'new' "$new" 'was' "$was" 'warning' "$warning" # Now generate the changelog line for this library. + # There's stuff in combine-dep-lines.awk (used by prep-release.sh) that depends on these formats. if [[ -n "$new" && -n "$was" ]]; then if [[ "$new" != "$was" ]]; then [[ -n "$verbose" ]] && printf '[%d/%d]: Creating bump line.\n' "$i" "${#libs[@]}" diff --git a/.changelog/prep-release.sh b/.changelog/prep-release.sh index 4b1aa8097..76fb99802 100755 --- a/.changelog/prep-release.sh +++ b/.changelog/prep-release.sh @@ -1,5 +1,7 @@ #!/bin/bash # This script will update the changelog stuff to mark a release. +# The following script(s) must be in the same dir as this one: +# combine-dep-lines.awk show_usage () { cat << EOF @@ -96,6 +98,15 @@ if [[ -z "$repo_root" ]]; then fi [[ -n "$verbose" ]] && printf ' Repo root dir: [%s].\n' "$repo_root" +# Define the path to the dependency combiner awk script, allowing for it to be defined by env var instead. +combine_dep_lines_awk="${COMBINE_DEP_LINES_AWK:-${where_i_am}/combine-dep-lines.awk}" +if [[ ! -f "$combine_dep_lines_awk" ]]; then + printf 'Could not find the combine-dep-lines awk script: %s\n' "$combine_dep_lines_awk" + exit 1 +fi + + + changelog_file="${repo_root}/CHANGELOG.md" if [[ ! -f "$changelog_file" ]]; then printf 'Could not find existing CHANGELOG.md file.\n' @@ -452,17 +463,31 @@ while IFS="" read -r line || [[ -n "$line" ]]; do fi done < "$links_fixed_file" -# Sort the entries of the dependencies section. -# They have the format "* `` ..." where is one of "added at" "bumped to" or "removed at". +# Clean, sort, and combine the entries of the dependencies section. # So, if we just sort them using version sort, it'll end up sorting them by library and version, which a handy way to view them. dep_file="${temp_dir}/3-section-dependencies.md" if [[ -f "$dep_file" ]]; then - [[ -n "$verbose" ]] && printf 'Sorting the dependency entries: [%s].\n' "$dep_file" - orig_dep_file="${dep_file}.orig" + # Move the existing one to a backup so we can create a new one in its place (but still have the original for reference). + orig_dep_file="${dep_file}.1_orig" + [[ -n "$verbose" ]] && printf 'Backing up original dependencies section file [%s] as [%s].\n' "$dep_file" "$orig_dep_file" mv "$dep_file" "$orig_dep_file" - head -n 2 "$orig_dep_file" > "$dep_file" - grep -E '^[[:space:]]*[-*]' "$orig_dep_file" | sed -E 's/^[[:space:]]+//; s/^(.)[[:space:]]+/\1 /;' | sort --version-sort >> "$dep_file" - printf '\n' >> "$dep_file" + + # Entry format: "* `` ..." where is one of "added at" "bumped to" or "removed at". + # First, make sure that the bullet point is the first char and there's exactly one space between it and the text; also + # remove all trailing whitespace. Then, apply version sort to sort them by library (alphabetically), then + # action (alphabetically, i.e. "added" then "bumped" then "replaced"), then by version (in version order). + sorted_dep_file="${dep_file}.2_sorted" + [[ -n "$verbose" ]] && printf 'Cleaning and sorting dependencies into [%s].\n' "$sorted_dep_file" + grep -E '^[[:space:]]*[-*]' "$orig_dep_file" | sed -E 's/^[[:space:]]+//; s/^(.)[[:space:]]+/\1 /;' | sort --version-sort > "$sorted_dep_file" + + combined_dep_file="${dep_file}.3_combined" + [[ -n "$verbose" ]] && printf 'Combining the sorted dependencies using [%s] into [%s].\n' "$combine_dep_lines_awk" "$combined_dep_file" + awk -f "$combine_dep_lines_awk" "$sorted_dep_file" > "$combined_dep_file" + + [[ -n "$verbose" ]] && printf 'Creating final dependencies section file: [%s].\n' "$dep_file" + head -n 2 "$orig_dep_file" > "$dep_file" # Copy the original header line and following empty line. + cat "$combined_dep_file" >> "$dep_file" # Append the cleaned, sorted, and combined entries. + printf '\n' >> "$dep_file" # And add an empty line to the end of the section. fi [[ -n "$verbose" ]] && printf 'Determining desired order for sections.\n' @@ -492,13 +517,13 @@ add_to_section_order top \ dependencies [[ -n "$verbose" ]] && printf 'Including sections in this order (%d): [%s].\n' "${#section_order[@]}" "${section_order[*]}" -new_cl_entry_file="${temp_dir}/4-release-notes.md" +new_cl_entry_file="${temp_dir}/4-version-release-notes.md" [[ -n "$verbose" ]] && printf 'Re-combining sections with proper order: [%s].\n' "$new_cl_entry_file" s=0 for section in "${section_order[@]}"; do s=$(( s + 1 )) - s_id="[${s}/${#}=${section}]" + s_id="[${s}/${#section_order[@]}=${section}]" s_file="${temp_dir}/3-section-${section}.md" if [[ ! -f "$s_file" ]]; then [[ -n "$verbose" ]] && printf '%s: No section file to include: [%s].\n' "$s_id" "$s_file" @@ -525,8 +550,8 @@ clean_versions () { # If this is an rc and there's an existing release notes, append those to the end, removing any existing section for this version. # If it's not an rc, or there isn't an existing one, just use what we've already got. -new_rl_file="${temp_dir}/5-release-notes.md" -release_notes_file="${repo_root}/RELEASE_NOTES.md" +new_rl_file="${temp_dir}/5-full-release-notes.md" +release_notes_file="${repo_root}/RELEASE_CHANGELOG.md" cp "$new_cl_entry_file" "$new_rl_file" if [[ -n "$v_rc" && -f "$release_notes_file" ]]; then [[ -n "$verbose" ]] && printf 'Including existing release notes: [%s].\n' "$release_notes_file" diff --git a/.changelog/unreleased/improvements/2181-combine-changelog-dep-lines.md b/.changelog/unreleased/improvements/2181-combine-changelog-dep-lines.md new file mode 100644 index 000000000..6782a1ef6 --- /dev/null +++ b/.changelog/unreleased/improvements/2181-combine-changelog-dep-lines.md @@ -0,0 +1 @@ +* Update the prep-release script to combine dependency changelog entries [PR 2181](https://github.com/provenance-io/provenance/pull/2181). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index eab342fce..18bc280e3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -310,8 +310,8 @@ You will need to create a new development branch for this and PR it back to the The `CHANGELOG.md` on the `.x` branch must be updated to reflect the new release. -1. Run `.changelog/prep-release.sh ` to create/update `RELEASE_NOTES.md`, update `CHANGELOG.md`, and move things around in the `.changelog/` folder. -2. Review the changes with extra attention on the new content of `CHANGELOG.md` and `RELEASE_NOTES.md`. +1. Run `.changelog/prep-release.sh ` to create/update `RELEASE_CHANGELOG.md`, update `CHANGELOG.md`, and move things around in the `.changelog/` folder. +2. Review the changes with extra attention on the new content of `CHANGELOG.md` and `RELEASE_CHANGELOG.md`. 3. Stage and commit the changes. 4. Push up your branch and create a PR for it to the `.x` branch. The PR title should be like `Mark v1.13.0`. 5. Get the PR approved and merged. From 75e9089695e2e941d8afa2bb0ba73ec64957cf27 Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Thu, 24 Oct 2024 10:41:42 -0600 Subject: [PATCH 4/5] Fix the `query metadata recordspec` command when given a rec-spec-id. (#2197) * [2148]: Fix the query metadata recordspec command to correctly use the RecordSpecification query (instead of RecordSpecificationsForContractSpecification) when provided a record specification id. * [2148]: Add changelog entry. --- .../unreleased/bug-fixes/2148-fix-recordspec-cli.md | 1 + x/metadata/client/cli/cli_test.go | 10 +++++++--- x/metadata/client/cli/query.go | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changelog/unreleased/bug-fixes/2148-fix-recordspec-cli.md diff --git a/.changelog/unreleased/bug-fixes/2148-fix-recordspec-cli.md b/.changelog/unreleased/bug-fixes/2148-fix-recordspec-cli.md new file mode 100644 index 000000000..a542e112d --- /dev/null +++ b/.changelog/unreleased/bug-fixes/2148-fix-recordspec-cli.md @@ -0,0 +1 @@ +* Fix the query metadata recordspec command to use the RecordSpecification query when provided a recspec id [#2148](https://github.com/provenance-io/provenance/issues/2148). diff --git a/x/metadata/client/cli/cli_test.go b/x/metadata/client/cli/cli_test.go index 33b6bffcf..62db4fb42 100644 --- a/x/metadata/client/cli/cli_test.go +++ b/x/metadata/client/cli/cli_test.go @@ -1471,9 +1471,13 @@ func (s *IntegrationCLITestSuite) TestGetMetadataRecordSpecCmd() { expOut: []string{indent(s.recordSpecAsText, 4)}, }, { - name: "rec spec id does not exist", - args: []string{"recspec1qh00d0q2e8w5say53afqdesxp2zw42dq2jdvmdazuwzcaddhh8gmuqhez44"}, - expOut: []string{"record_specifications: []"}, + name: "rec spec id does not exist", + args: []string{"recspec1qh00d0q2e8w5say53afqdesxp2zw42dq2jdvmdazuwzcaddhh8gmuqhez44"}, + expOut: []string{ + " contract_spec_addr: contractspec1q000d0q2e8w5say53afqdesxp2zqzkr4fn", + " record_spec_addr: recspec1qh00d0q2e8w5say53afqdesxp2zw42dq2jdvmdazuwzcaddhh8gmuqhez44", + " specification: null", + }, }, { name: "record specs from contract spec id as json", diff --git a/x/metadata/client/cli/query.go b/x/metadata/client/cli/query.go index 5816eac6b..42cc6f965 100644 --- a/x/metadata/client/cli/query.go +++ b/x/metadata/client/cli/query.go @@ -443,7 +443,7 @@ func GetMetadataRecordSpecCmd() *cobra.Command { if len(args) > 1 { name = trimSpaceAndJoin(args[1:], " ") } - if len(name) == 0 { + if len(name) == 0 && !strings.HasPrefix(strings.ToLower(arg0), types.PrefixRecordSpecification) { return outputRecordSpecsForContractSpec(cmd, arg0) } return outputRecordSpec(cmd, arg0, name) From 66e7eb017d03212c554b9451e15d7488d7a5aac6 Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Thu, 24 Oct 2024 14:12:07 -0600 Subject: [PATCH 5/5] Fix decoding of gov props with a ParameterChangeProposal in them. (#2198) * Write a unit test that fails to parse a gov proposal with a ParameterChangeProposal in it because that type isn't being registered anymore. * Register the params module stuff with the codecs since there's some gov props with a ParameterChangeProposal in them. * Add changelog entry. --- .../bug-fixes/2198-fix-gov-props.md | 1 + app/app.go | 5 ++ app/app_test.go | 86 +++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 .changelog/unreleased/bug-fixes/2198-fix-gov-props.md diff --git a/.changelog/unreleased/bug-fixes/2198-fix-gov-props.md b/.changelog/unreleased/bug-fixes/2198-fix-gov-props.md new file mode 100644 index 000000000..9d55a7eda --- /dev/null +++ b/.changelog/unreleased/bug-fixes/2198-fix-gov-props.md @@ -0,0 +1 @@ +* Register the params types with the codecs so old gov props can be read [PR 2198](https://github.com/provenance-io/provenance/pull/2198). diff --git a/app/app.go b/app/app.go index 76a628099..eb0693bec 100644 --- a/app/app.go +++ b/app/app.go @@ -98,6 +98,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/mint" mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper" minttypes "github.com/cosmos/cosmos-sdk/x/mint/types" + paramprops "github.com/cosmos/cosmos-sdk/x/params/types/proposal" //nolint:depguard // Need this here to register old types. "github.com/cosmos/cosmos-sdk/x/slashing" slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" @@ -786,6 +787,10 @@ func New( app.BasicModuleManager.RegisterLegacyAminoCodec(legacyAmino) app.BasicModuleManager.RegisterInterfaces(interfaceRegistry) + // We removed the params module, but have several gov props with a ParameterChangeProposal in them. + paramprops.RegisterLegacyAminoCodec(legacyAmino) + paramprops.RegisterInterfaces(interfaceRegistry) + // NOTE: upgrade module is required to be prioritized app.mm.SetOrderPreBlockers( upgradetypes.ModuleName, diff --git a/app/app_test.go b/app/app_test.go index 737fc17a7..0dacb9e20 100644 --- a/app/app_test.go +++ b/app/app_test.go @@ -5,6 +5,7 @@ import ( "fmt" "sort" "testing" + "time" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -16,6 +17,7 @@ import ( dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/cosmos-sdk/baseapp" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" sdktypes "github.com/cosmos/cosmos-sdk/codec/types" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" sdk "github.com/cosmos/cosmos-sdk/types" @@ -23,6 +25,8 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types" + govtypesv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1" + paramprops "github.com/cosmos/cosmos-sdk/x/params/types/proposal" "github.com/cosmos/gogoproto/proto" "github.com/provenance-io/provenance/internal/pioconfig" @@ -440,3 +444,85 @@ func TestMsgServerProtoAnnotations(t *testing.T) { err = msgservice.ValidateProtoAnnotations(protoFiles) assertions.AssertErrorValue(t, err, expErr, "ValidateProtoAnnotations") } + +func TestParamChangeInGovProp(t *testing.T) { + paramChangeProp := ¶mprops.ParameterChangeProposal{ + Title: "Test Prop Change", + Description: "A proposal for testing decoding", + Changes: []paramprops.ParamChange{ + { + Subspace: "mymodule", + Key: "favorite_flower", + Value: "fuchsia", + }, + }, + } + paramChangePropAny, err := codectypes.NewAnyWithValue(paramChangeProp) + require.NoError(t, err, "codectypes.NewAnyWithValue(paramChangeProp)") + t.Logf("paramChangePropAny.TypeUrl = %q", paramChangePropAny.TypeUrl) + + execLeg := &govtypesv1.MsgExecLegacyContent{ + Content: paramChangePropAny, + Authority: "jerry", + } + + execLegAny, err := codectypes.NewAnyWithValue(execLeg) + require.NoError(t, err, "codectypes.NewAnyWithValue(execLeg)") + + submitTime := time.Unix(1618935600, 0) + depositEndTime := submitTime.Add(1 * time.Minute) + votingStartTime := depositEndTime.Add(3500 * time.Millisecond) + votingEndTime := votingStartTime.Add(48 * time.Hour) + + prop := govtypesv1.Proposal{ + Id: 123, + Messages: []*codectypes.Any{execLegAny}, + Status: govtypesv1.StatusPassed, + FinalTallyResult: &govtypesv1.TallyResult{YesCount: "5", AbstainCount: "1", NoCount: "0", NoWithVetoCount: "0"}, + SubmitTime: &submitTime, + DepositEndTime: &depositEndTime, + TotalDeposit: []sdk.Coin{sdk.NewInt64Coin("pink", 1000)}, + VotingStartTime: &votingStartTime, + VotingEndTime: &votingEndTime, + Metadata: "Prop metadata", + Title: "The prop title", + Summary: "The prop summary", + Proposer: sdk.AccAddress("proposer____________").String(), + } + + expJSON := `{"id":"123",` + + `"messages":[{"@type":"/cosmos.gov.v1.MsgExecLegacyContent",` + + `"content":{"@type":"/cosmos.params.v1beta1.ParameterChangeProposal",` + + `"title":"Test Prop Change",` + + `"description":"A proposal for testing decoding",` + + `"changes":[{"subspace":"mymodule","key":"favorite_flower","value":"fuchsia"}]},` + + `"authority":"jerry"}],` + + `"status":"PROPOSAL_STATUS_PASSED",` + + `"final_tally_result":{"yes_count":"5","abstain_count":"1","no_count":"0","no_with_veto_count":"0"},` + + `"submit_time":"2021-04-20T16:20:00Z",` + + `"deposit_end_time":"2021-04-20T16:21:00Z",` + + `"total_deposit":[{"denom":"pink","amount":"1000"}],` + + `"voting_start_time":"2021-04-20T16:21:03.500Z",` + + `"voting_end_time":"2021-04-22T16:21:03.500Z",` + + `"metadata":"Prop metadata",` + + `"title":"The prop title",` + + `"summary":"The prop summary",` + + `"proposer":"cosmos1wpex7ur0wdjhyh6lta047h6lta047h6ljkx24t",` + + `"expedited":false,` + + `"failed_reason":""}` + + propBz, err := prop.Marshal() + require.NoError(t, err, "prop.Marshal()") + + encCfg := MakeTestEncodingConfig(t) + + var actProp govtypesv1.Proposal + err = encCfg.Marshaler.Unmarshal(propBz, &actProp) + require.NoError(t, err, "encCfg.Marshaler.Unmarshal(propBz, &actProp)") + + propJSONBz, err := encCfg.Marshaler.MarshalJSON(&actProp) + require.NoError(t, err, "encCfg.Marshaler.MarshalJSON(&actProp)") + propJSON := string(propJSONBz) + t.Logf("prop JSON:\n%s", propJSON) + assert.Equal(t, expJSON, propJSON, "proposal JSON") +}