Skip to content

Commit

Permalink
Merge branch 'main' into feat/ardrive-turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Oct 30, 2024
2 parents 39c9d82 + 7d6edb9 commit 0b46ceb
Show file tree
Hide file tree
Showing 21 changed files with 117 additions and 29 deletions.
4 changes: 4 additions & 0 deletions common/protocol/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.2.4](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-09-13)

**Note:** Version bump only for package @kyvejs/protocol

## [1.2.3](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-08-29)

**Note:** Version bump only for package @kyvejs/protocol
Expand Down
6 changes: 3 additions & 3 deletions common/protocol/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyvejs/protocol",
"version": "1.2.3",
"version": "1.2.4",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"repository": {
Expand All @@ -20,8 +20,8 @@
},
"dependencies": {
"@bundlr-network/client": "^0.8.9",
"@kyvejs/sdk": "1.3.2",
"@kyvejs/types": "1.4.0",
"@kyvejs/sdk": "1.3.3",
"@kyvejs/types": "1.4.1",
"arweave": "^1.10.17",
"axios": "^0.27.2",
"bignumber.js": "^9.1.2",
Expand Down
4 changes: 4 additions & 0 deletions common/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.3.3](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-09-13)

**Note:** Version bump only for package @kyvejs/sdk

## [1.3.2](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-08-07)

**Note:** Version bump only for package @kyvejs/sdk
Expand Down
6 changes: 4 additions & 2 deletions common/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyvejs/sdk",
"version": "1.3.2",
"version": "1.3.3",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
Expand All @@ -26,14 +26,16 @@
"@cosmjs/amino": "^0.32.3",
"@cosmjs/crypto": "^0.32.3",
"@cosmjs/encoding": "^0.32.3",
"@cosmjs/math": "^0.32.4",
"@cosmjs/proto-signing": "^0.32.3",
"@cosmjs/stargate": "^0.32.3",
"@cosmostation/extension-client": "^0.1.15",
"@keplr-wallet/cosmos": "^0.12.96",
"@kyvejs/types": "1.4.0",
"@kyvejs/types": "1.4.1",
"axios": "^0.27.2",
"bech32": "2.0.0",
"bignumber.js": "9.1.2",
"cosmjs-types": "^0.9.0",
"humanize-number": "0.0.2",
"qs": "^6.10.5"
},
Expand Down
4 changes: 4 additions & 0 deletions common/types/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.4.1](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-09-13)

**Note:** Version bump only for package @kyvejs/types

# [1.4.0](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-07-03)

### Features
Expand Down
6 changes: 5 additions & 1 deletion common/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyvejs/types",
"version": "1.4.0",
"version": "1.4.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"repository": {
Expand All @@ -24,5 +24,9 @@
"devDependencies": {
"rimraf": "^3.0.2",
"typescript": "^4.7.3"
},
"dependencies": {
"long": "^5.2.3",
"protobufjs": "^7.4.0"
}
}
4 changes: 4 additions & 0 deletions integrations/ethereum-blobs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.0.0-beta.7](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-09-13)

**Note:** Version bump only for package @kyvejs/ethereum-blobs

# [1.0.0-beta.6](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-08-29)

**Note:** Version bump only for package @kyvejs/ethereum-blobs
Expand Down
4 changes: 2 additions & 2 deletions integrations/ethereum-blobs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyvejs/ethereum-blobs",
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc",
Expand All @@ -22,7 +22,7 @@
"singleQuote": true
},
"dependencies": {
"@kyvejs/protocol": "1.2.3",
"@kyvejs/protocol": "1.2.4",
"axios": "^0.27.2",
"dotenv": "^16.3.1"
},
Expand Down
4 changes: 4 additions & 0 deletions integrations/evm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [1.1.0-beta.6](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-09-13)

**Note:** Version bump only for package @kyvejs/evm

# [1.1.0-beta.5](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-08-29)

**Note:** Version bump only for package @kyvejs/evm
Expand Down
4 changes: 2 additions & 2 deletions integrations/evm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyvejs/evm",
"version": "1.1.0-beta.5",
"version": "1.1.0-beta.6",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc",
Expand All @@ -22,7 +22,7 @@
"singleQuote": true
},
"dependencies": {
"@kyvejs/protocol": "1.2.3",
"@kyvejs/protocol": "1.2.4",
"ethers": "^5.6.5"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions integrations/tendermint-bsync/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.2.5](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-09-13)

**Note:** Version bump only for package @kyvejs/tendermint-bsync

## [1.2.4](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-08-29)

**Note:** Version bump only for package @kyvejs/tendermint-bsync
Expand Down
6 changes: 3 additions & 3 deletions integrations/tendermint-bsync/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyvejs/tendermint-bsync",
"version": "1.2.4",
"version": "1.2.5",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc",
Expand All @@ -22,8 +22,8 @@
"singleQuote": true
},
"dependencies": {
"@kyvejs/protocol": "1.2.3",
"@kyvejs/sdk": "1.3.2",
"@kyvejs/protocol": "1.2.4",
"@kyvejs/sdk": "1.3.3",
"axios": "^0.27.2"
},
"devDependencies": {
Expand Down
4 changes: 4 additions & 0 deletions integrations/tendermint-ssync/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.2.4](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-09-13)

**Note:** Version bump only for package @kyvejs/tendermint-ssync

## [1.2.3](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-08-29)

**Note:** Version bump only for package @kyvejs/tendermint-ssync
Expand Down
4 changes: 2 additions & 2 deletions integrations/tendermint-ssync/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyvejs/tendermint-ssync",
"version": "1.2.3",
"version": "1.2.4",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc",
Expand All @@ -22,7 +22,7 @@
"singleQuote": true
},
"dependencies": {
"@kyvejs/protocol": "1.2.3",
"@kyvejs/protocol": "1.2.4",
"axios": "^0.27.2"
},
"devDependencies": {
Expand Down
16 changes: 16 additions & 0 deletions integrations/tendermint/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.2.7](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-10-24)

### Bug Fixes

- remove index in finalize block events ([#157](https://github.com/KYVENetwork/kyvejs/issues/157)) ([2fb33c2](https://github.com/KYVENetwork/kyvejs/commit/2fb33c2a2d36ed83ce39eefb086e5fe1a4a80c68))

## [1.2.6](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-09-23)

### Bug Fixes

- allow `null` for `finalize_block_events` ([#156](https://github.com/KYVENetwork/kyvejs/issues/156)) ([0f733c4](https://github.com/KYVENetwork/kyvejs/commit/0f733c422a78d7e8ce9c1d701b2c2c0a413263e5))

## [1.2.5](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-09-13)

**Note:** Version bump only for package @kyvejs/tendermint

## [1.2.4](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-08-29)

**Note:** Version bump only for package @kyvejs/tendermint
Expand Down
6 changes: 3 additions & 3 deletions integrations/tendermint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyvejs/tendermint",
"version": "1.2.4",
"version": "1.2.7",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc",
Expand All @@ -22,8 +22,8 @@
"singleQuote": true
},
"dependencies": {
"@kyvejs/protocol": "1.2.3",
"@kyvejs/sdk": "1.3.2",
"@kyvejs/protocol": "1.2.4",
"@kyvejs/sdk": "1.3.3",
"ajv": "^8.12.0",
"axios": "^0.27.2",
"dotenv": "^16.3.1"
Expand Down
19 changes: 15 additions & 4 deletions integrations/tendermint/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface IAttribute {

interface IEvent {
type: string;
attributes: IAttribute[];
attributes?: IAttribute[];
}

export default class Tendermint implements IRuntime {
Expand Down Expand Up @@ -174,7 +174,7 @@ export default class Tendermint implements IRuntime {
if (item.value.block_results.begin_block_events) {
item.value.block_results.begin_block_events =
item.value.block_results.begin_block_events.map((event: IEvent) => {
event.attributes = event.attributes
event.attributes = (event.attributes || [])
.sort(compareEventAttribute)
.map(({ index, ...attribute }: IAttribute) => attribute);
return event;
Expand All @@ -185,7 +185,18 @@ export default class Tendermint implements IRuntime {
if (item.value.block_results.end_block_events) {
item.value.block_results.end_block_events =
item.value.block_results.end_block_events.map((event: IEvent) => {
event.attributes = event.attributes
event.attributes = (event.attributes || [])
.sort(compareEventAttribute)
.map(({ index, ...attribute }: IAttribute) => attribute);
return event;
});
}

// sort attributes and remove index in finalize_block_events
if (item.value.block_results.finalize_block_events) {
item.value.block_results.finalize_block_events =
item.value.block_results.finalize_block_events.map((event: IEvent) => {
event.attributes = (event.attributes || [])
.sort(compareEventAttribute)
.map(({ index, ...attribute }: IAttribute) => attribute);
return event;
Expand All @@ -201,7 +212,7 @@ export default class Tendermint implements IRuntime {
if (tx_result.events) {
tx_result.events = tx_result.events.map((event: IEvent) => {
// sort attributes in txs_results
event.attributes = event.attributes
event.attributes = (event.attributes || [])
.sort(compareEventAttribute)
.map(({ index, ...attribute }: IAttribute) => attribute);

Expand Down
8 changes: 4 additions & 4 deletions integrations/tendermint/src/schemas/block_result.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
]
}
},
"required": ["type", "attributes"]
"required": ["type"]
}
]
},
Expand Down Expand Up @@ -109,7 +109,7 @@
]
}
},
"required": ["type", "attributes"]
"required": ["type"]
}
]
},
Expand Down Expand Up @@ -143,12 +143,12 @@
]
}
},
"required": ["type", "attributes"]
"required": ["type"]
}
]
},
"finalize_block_events": {
"type": ["array"],
"type": ["array", "null"],
"items": [
{
"type": "object",
Expand Down
4 changes: 4 additions & 0 deletions tools/kysor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.4.4](https://github.com/KYVENetwork/kyvejs/compare/@kyve/[email protected]...@kyve/[email protected]) (2024-09-13)

**Note:** Version bump only for package @kyve/kysor

## [1.4.3](https://github.com/KYVENetwork/kyvejs/compare/@kyve/[email protected]...@kyve/[email protected]) (2024-09-02)

**Note:** Version bump only for package @kyve/kysor
Expand Down
6 changes: 3 additions & 3 deletions tools/kysor/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kyve/kysor",
"description": "The Cosmovisor for KYVE protocol nodes",
"version": "1.4.3",
"version": "1.4.4",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"homepage": "https://github.com/KYVENetwork/kysor#readme",
Expand Down Expand Up @@ -38,8 +38,8 @@
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"@kyvejs/sdk": "1.3.2",
"@kyvejs/types": "1.4.0",
"@kyvejs/sdk": "1.3.3",
"@kyvejs/types": "1.4.1",
"axios": "^0.27.2",
"bignumber.js": "^9.1.0",
"commander": "^9.4.0",
Expand Down
23 changes: 23 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7077,6 +7077,11 @@ long@^4.0.0:
resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28"
integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==

long@^5.0.0, long@^5.2.3:
version "5.2.3"
resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1"
integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==

[email protected]:
version "1.0.0"
resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306"
Expand Down Expand Up @@ -8470,6 +8475,24 @@ protobufjs@^6.11.2, protobufjs@^6.8.8:
"@types/node" ">=13.7.0"
long "^4.0.0"

protobufjs@^7.4.0:
version "7.4.0"
resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.4.0.tgz#7efe324ce9b3b61c82aae5de810d287bc08a248a"
integrity sha512-mRUWCc3KUU4w1jU8sGxICXH/gNS94DvI1gxqDvBzhj1JpcsimQkYiOJfwsPUykUI5ZaspFbSgmBLER8IrQ3tqw==
dependencies:
"@protobufjs/aspromise" "^1.1.2"
"@protobufjs/base64" "^1.1.2"
"@protobufjs/codegen" "^2.0.4"
"@protobufjs/eventemitter" "^1.1.0"
"@protobufjs/fetch" "^1.1.0"
"@protobufjs/float" "^1.0.2"
"@protobufjs/inquire" "^1.1.0"
"@protobufjs/path" "^1.1.2"
"@protobufjs/pool" "^1.1.0"
"@protobufjs/utf8" "^1.1.0"
"@types/node" ">=13.7.0"
long "^5.0.0"

protocols@^2.0.0, protocols@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86"
Expand Down

0 comments on commit 0b46ceb

Please sign in to comment.