Skip to content

Commit

Permalink
chore(release): perform release 11.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bot-anik committed Dec 11, 2024
1 parent f5719c4 commit 5d7ef15
Show file tree
Hide file tree
Showing 99 changed files with 224 additions and 180 deletions.
44 changes: 44 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# AXONE protocol changelog

## [11.0.0](https://github.com/axone-protocol/axoned/compare/v10.0.0...v11.0.0) (2024-12-11)


### ⚠ BREAKING CHANGES

* **logic:** change Limits and GasPolicy properties to use uint64
* **logic:** use '=' functor for encoding key-value pairs in json_prolog/2
* **logic:** remove @([]) empty list encoding in json_prolog/2
* **logic:** preserve object key order in json_prolog/2
* **logic:** add decimal number support for json_prolog/2

### Features

* **logic:** accept JSON as text for json_prolog/2 ([83aa22c](https://github.com/axone-protocol/axoned/commit/83aa22c11fbdae76121697175da3dfccd5dfe04d))
* **logic:** add atomic_list_concat/2 predicate ([44daf95](https://github.com/axone-protocol/axoned/commit/44daf95f7c082d5a941fc919e63f761343f78bf6))
* **logic:** add atomic_list_concat/3 predicate ([f394074](https://github.com/axone-protocol/axoned/commit/f394074d8ec4802381445a825541688a59b7e575))
* **logic:** add block_header/1 predicate ([94a94a3](https://github.com/axone-protocol/axoned/commit/94a94a374cb186d7ad2312b9ffc72bcbbc82b8e0))
* **logic:** add json_read/2 predicate ([a9902a3](https://github.com/axone-protocol/axoned/commit/a9902a32a7e4c180e55609cd445fc6fe24823047))
* **logic:** add json_write/2 predicate ([1675c34](https://github.com/axone-protocol/axoned/commit/1675c34b3b10b3a3898a1fc2b59765e00b8bb7eb))
* **logic:** add term_to_atom/2 predicate ([96043c2](https://github.com/axone-protocol/axoned/commit/96043c23fb4943825c1f86d57feb188904a4a9b6))
* **logic:** deprecate the block_height/1 predicate ([0467fb5](https://github.com/axone-protocol/axoned/commit/0467fb5237abc705d023b4d3d3ec789c37351899))
* **logic:** deprecate the block_time/1 predicate ([404fdc2](https://github.com/axone-protocol/axoned/commit/404fdc2691d1fc5732ede10d84fd1ec2a5ea0884))
* **logic:** deprecate the chain_id/1 predicate ([8a6144e](https://github.com/axone-protocol/axoned/commit/8a6144e66cf7d3ca96e1c019ffbdd041470e5f0c))
* **logic:** generate default values for the interpreter in genesis file ([6146f20](https://github.com/axone-protocol/axoned/commit/6146f2007528092db5f4c89b9e9702ebb9e980b2))
* **logic:** implement chain migration to v11 ([da93e81](https://github.com/axone-protocol/axoned/commit/da93e8146a2fe127d43a5f1f886e78b1b077b890))
* **logic:** implement telemetry for predicate execution duration metrics ([f550a53](https://github.com/axone-protocol/axoned/commit/f550a535dbb0327876c64b6d0e93eb579df70af2))
* **logic:** introduce resource_context/1 composite for missing context value retrieval ([1132405](https://github.com/axone-protocol/axoned/commit/1132405069638be018c7792900862efd2e10f9f0))
* **logic:** introduce telemetry to track predicate call counts ([d0fd0c7](https://github.com/axone-protocol/axoned/commit/d0fd0c7bed42205c70b613b7de0838c4787e232b))
* **logic:** use the default cost params when lookup gas cost ([350b78a](https://github.com/axone-protocol/axoned/commit/350b78a087c2ce0dbd20e7efa1e293506ff0fd8f))


### Bug Fixes

* **logic:** add decimal number support for json_prolog/2 ([4e7375b](https://github.com/axone-protocol/axoned/commit/4e7375b4bb3714ef0ed706f7628fe030847a0d2d))
* **prolog:** implement fine-grained gas metering for predicates ([239a4e0](https://github.com/axone-protocol/axoned/commit/239a4e04074b518d764644b0649e85827a0365dc))


### Code Refactoring

* **logic:** change Limits and GasPolicy properties to use uint64 ([db18c9a](https://github.com/axone-protocol/axoned/commit/db18c9a38d80c4e882f410fafca876679a8cffaa))
* **logic:** preserve object key order in json_prolog/2 ([6ea2633](https://github.com/axone-protocol/axoned/commit/6ea26335aadb9cd62bda9ea1653c43bde05c9a9c))
* **logic:** remove @([]) empty list encoding in json_prolog/2 ([c3e5781](https://github.com/axone-protocol/axoned/commit/c3e57816bab683bb29b3f160f16d566b355ec84f))
* **logic:** use '=' functor for encoding key-value pairs in json_prolog/2 ([37d4518](https://github.com/axone-protocol/axoned/commit/37d4518c9d6ec6693ef4632af67c0c1b74c00d3a))

## [10.0.0](https://github.com/axone-protocol/axoned/compare/v9.0.0...v10.0.0) (2024-08-29)


Expand Down
24 changes: 12 additions & 12 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,18 +134,18 @@ import (
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
ibctm "github.com/cosmos/ibc-go/v8/modules/light-clients/07-tendermint"

axonewasm "github.com/axone-protocol/axoned/v10/app/wasm"
"github.com/axone-protocol/axoned/v10/docs"
logicmodule "github.com/axone-protocol/axoned/v10/x/logic"
"github.com/axone-protocol/axoned/v10/x/logic/fs/composite"
wasm2 "github.com/axone-protocol/axoned/v10/x/logic/fs/wasm"
logicmodulekeeper "github.com/axone-protocol/axoned/v10/x/logic/keeper"
logicmoduletypes "github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v10/x/mint"
mintkeeper "github.com/axone-protocol/axoned/v10/x/mint/keeper"
minttypes "github.com/axone-protocol/axoned/v10/x/mint/types"
"github.com/axone-protocol/axoned/v10/x/vesting"
vestingtypes "github.com/axone-protocol/axoned/v10/x/vesting/types"
axonewasm "github.com/axone-protocol/axoned/v11/app/wasm"
"github.com/axone-protocol/axoned/v11/docs"
logicmodule "github.com/axone-protocol/axoned/v11/x/logic"
"github.com/axone-protocol/axoned/v11/x/logic/fs/composite"
wasm2 "github.com/axone-protocol/axoned/v11/x/logic/fs/wasm"
logicmodulekeeper "github.com/axone-protocol/axoned/v11/x/logic/keeper"
logicmoduletypes "github.com/axone-protocol/axoned/v11/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/mint"
mintkeeper "github.com/axone-protocol/axoned/v11/x/mint/keeper"
minttypes "github.com/axone-protocol/axoned/v11/x/mint/types"
"github.com/axone-protocol/axoned/v11/x/vesting"
vestingtypes "github.com/axone-protocol/axoned/v11/x/vesting/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims"

"github.com/axone-protocol/axoned/v10/app/params"
"github.com/axone-protocol/axoned/v11/app/params"
)

// makeEncodingConfig creates an EncodingConfig test configuration.
Expand Down
4 changes: 2 additions & 2 deletions app/wasm/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"

logickeeper "github.com/axone-protocol/axoned/v10/x/logic/keeper"
logicwasm "github.com/axone-protocol/axoned/v10/x/logic/wasm"
logickeeper "github.com/axone-protocol/axoned/v11/x/logic/keeper"
logicwasm "github.com/axone-protocol/axoned/v11/x/logic/wasm"
)

// customQuery represents the wasm custom query structure, it is intended to allow wasm contracts to execute queries
Expand Down
2 changes: 1 addition & 1 deletion client/credential/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
sdkerr "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/types/tx/signing"

"github.com/axone-protocol/axoned/v10/x/logic/util"
"github.com/axone-protocol/axoned/v11/x/logic/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion client/keys/did.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/version"

"github.com/axone-protocol/axoned/v10/x/logic/util"
"github.com/axone-protocol/axoned/v11/x/logic/util"
)

var flagPubKeyType = "type"
Expand Down
2 changes: 1 addition & 1 deletion client/keys/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/keys"
cryptokeyring "github.com/cosmos/cosmos-sdk/crypto/keyring"

"github.com/axone-protocol/axoned/v10/x/logic/util"
"github.com/axone-protocol/axoned/v11/x/logic/util"
)

// KeyOutput is the output format for keys when listing them.
Expand Down
2 changes: 1 addition & 1 deletion cmd/axoned/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/axone-protocol/axoned/v10/app"
"github.com/axone-protocol/axoned/v11/app"
)

func initSDKConfig() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/axoned/cmd/genaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/cosmos/cosmos-sdk/server"
sdk "github.com/cosmos/cosmos-sdk/types"

vestingtypes "github.com/axone-protocol/axoned/v10/x/vesting/types"
vestingtypes "github.com/axone-protocol/axoned/v11/x/vesting/types"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions cmd/axoned/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ import (
"github.com/cosmos/cosmos-sdk/x/crisis"
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"

"github.com/axone-protocol/axoned/v10/app"
appparams "github.com/axone-protocol/axoned/v10/app/params"
"github.com/axone-protocol/axoned/v10/client/credential"
axonekeys "github.com/axone-protocol/axoned/v10/client/keys"
"github.com/axone-protocol/axoned/v11/app"
appparams "github.com/axone-protocol/axoned/v11/app/params"
"github.com/axone-protocol/axoned/v11/client/credential"
axonekeys "github.com/axone-protocol/axoned/v11/client/keys"
)

// NewRootCmd creates a new root command for a Cosmos SDK application.
Expand Down
4 changes: 2 additions & 2 deletions cmd/axoned/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

"github.com/axone-protocol/axoned/v10/app"
"github.com/axone-protocol/axoned/v10/cmd/axoned/cmd"
"github.com/axone-protocol/axoned/v11/app"
"github.com/axone-protocol/axoned/v11/cmd/axoned/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/axone-protocol/axoned/v10
module github.com/axone-protocol/axoned/v11

go 1.23.3

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

"github.com/spf13/cobra/doc"

"github.com/axone-protocol/axoned/v10/cmd/axoned/cmd"
"github.com/axone-protocol/axoned/v11/cmd/axoned/cmd"
)

func generateCommandDocumentation() error {
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.0.0
11.0.0
2 changes: 1 addition & 1 deletion x/logic/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/cosmos/cosmos-sdk/client"

"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

// GetQueryCmd returns the cli query commands for this module.
Expand Down
2 changes: 1 addition & 1 deletion x/logic/client/cli/query_ask.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/version"

"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion x/logic/client/cli/query_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"

"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

func CmdQueryParams() *cobra.Command {
Expand Down
4 changes: 2 additions & 2 deletions x/logic/fs/composite/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (

. "github.com/smartystreets/goconvey/convey"

"github.com/axone-protocol/axoned/v10/x/logic/fs/wasm"
"github.com/axone-protocol/axoned/v10/x/logic/testutil"
"github.com/axone-protocol/axoned/v11/x/logic/fs/wasm"
"github.com/axone-protocol/axoned/v11/x/logic/testutil"
)

type fileSpec struct {
Expand Down
2 changes: 1 addition & 1 deletion x/logic/fs/filtered/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io/fs"
"net/url"

"github.com/axone-protocol/axoned/v10/x/logic/util"
"github.com/axone-protocol/axoned/v11/x/logic/util"
)

type vfs struct {
Expand Down
6 changes: 3 additions & 3 deletions x/logic/fs/filtered/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

. "github.com/smartystreets/goconvey/convey"

"github.com/axone-protocol/axoned/v10/x/logic/fs/wasm"
"github.com/axone-protocol/axoned/v10/x/logic/testutil"
"github.com/axone-protocol/axoned/v10/x/logic/util"
"github.com/axone-protocol/axoned/v11/x/logic/fs/wasm"
"github.com/axone-protocol/axoned/v11/x/logic/testutil"
"github.com/axone-protocol/axoned/v11/x/logic/util"
)

func TestFilteredVFS(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/logic/fs/wasm/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion x/logic/fs/wasm/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/axone-protocol/axoned/v10/x/logic/testutil"
"github.com/axone-protocol/axoned/v11/x/logic/testutil"
)

//nolint:gocognit
Expand Down
4 changes: 2 additions & 2 deletions x/logic/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/axone-protocol/axoned/v10/x/logic/keeper"
"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/keeper"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

// InitGenesis initializes the module's state from a provided genesis state.
Expand Down
2 changes: 1 addition & 1 deletion x/logic/interpreter/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/axone-protocol/prolog/v2/engine"
orderedmap "github.com/wk8/go-ordered-map/v2"

"github.com/axone-protocol/axoned/v10/x/logic/predicate"
"github.com/axone-protocol/axoned/v11/x/logic/predicate"
)

// registry is a map from predicate names (in the form of "atom/arity") to predicates functions.
Expand Down
2 changes: 1 addition & 1 deletion x/logic/keeper/grpc_query.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package keeper

import (
"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

var _ types.QueryServiceServer = Keeper{}
4 changes: 2 additions & 2 deletions x/logic/keeper/grpc_query_ask.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/axone-protocol/axoned/v10/x/logic/meter"
"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/meter"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

func (k Keeper) Ask(ctx goctx.Context, req *types.QueryServiceAskRequest) (response *types.QueryServiceAskResponse, err error) {
Expand Down
8 changes: 4 additions & 4 deletions x/logic/keeper/grpc_query_ask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"

"github.com/axone-protocol/axoned/v10/x/logic"
"github.com/axone-protocol/axoned/v10/x/logic/keeper"
logictestutil "github.com/axone-protocol/axoned/v10/x/logic/testutil"
"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic"
"github.com/axone-protocol/axoned/v11/x/logic/keeper"
logictestutil "github.com/axone-protocol/axoned/v11/x/logic/testutil"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

//nolint:lll
Expand Down
2 changes: 1 addition & 1 deletion x/logic/keeper/grpc_query_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

func (k Keeper) Params(c context.Context, req *types.QueryServiceParamsRequest) (*types.QueryServiceParamsResponse, error) {
Expand Down
8 changes: 4 additions & 4 deletions x/logic/keeper/grpc_query_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"

"github.com/axone-protocol/axoned/v10/x/logic"
"github.com/axone-protocol/axoned/v10/x/logic/keeper"
logictestutil "github.com/axone-protocol/axoned/v10/x/logic/testutil"
"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic"
"github.com/axone-protocol/axoned/v11/x/logic/keeper"
logictestutil "github.com/axone-protocol/axoned/v11/x/logic/testutil"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

func TestGRPCParams(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions x/logic/keeper/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ import (

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/axone-protocol/axoned/v10/x/logic/fs/filtered"
"github.com/axone-protocol/axoned/v10/x/logic/interpreter"
"github.com/axone-protocol/axoned/v10/x/logic/interpreter/bootstrap"
"github.com/axone-protocol/axoned/v10/x/logic/meter"
prolog2 "github.com/axone-protocol/axoned/v10/x/logic/prolog"
"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v10/x/logic/util"
"github.com/axone-protocol/axoned/v11/x/logic/fs/filtered"
"github.com/axone-protocol/axoned/v11/x/logic/interpreter"
"github.com/axone-protocol/axoned/v11/x/logic/interpreter/bootstrap"
"github.com/axone-protocol/axoned/v11/x/logic/meter"
prolog2 "github.com/axone-protocol/axoned/v11/x/logic/prolog"
"github.com/axone-protocol/axoned/v11/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/util"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions x/logic/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/axone-protocol/axoned/v10/x/logic/fs"
"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/fs"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions x/logic/keeper/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/cosmos/cosmos-sdk/telemetry"

"github.com/axone-protocol/axoned/v10/x/logic/interpreter"
"github.com/axone-protocol/axoned/v10/x/logic/types"
"github.com/axone-protocol/axoned/v11/x/logic/interpreter"
"github.com/axone-protocol/axoned/v11/x/logic/types"
)

var metricsKeys = []string{types.ModuleName, "vm", "predicate"}
Expand Down
Loading

0 comments on commit 5d7ef15

Please sign in to comment.