Skip to content

Commit

Permalink
chore: merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Jan 29, 2024
2 parents d439c66 + 84cba4e commit 01eb6e7
Show file tree
Hide file tree
Showing 19 changed files with 156 additions and 64 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.1.4](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-01-26)

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

## [1.1.3](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-01-05)

### Bug Fixes
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.1.3",
"version": "1.1.4",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"repository": {
Expand Down Expand Up @@ -37,8 +37,8 @@
"@cosmjs/proto-signing": "^0.27.1",
"@cosmjs/stargate": "^0.27.1",
"@grpc/grpc-js": "^1.9.2",
"@kyvejs/sdk": "1.1.0-rc1",
"@kyvejs/types": "1.2.0-rc0",
"@kyvejs/sdk": "1.1.1",
"@kyvejs/types": "1.2.0",
"@types/cli-progress": "^3.9.2",
"@types/jsonfile": "^6.0.1",
"arweave": "^1.10.17",
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.1.1](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-01-26)

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

# [1.1.0](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2023-11-28)

### Features
Expand Down
2 changes: 1 addition & 1 deletion common/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kyvejs/sdk",
"version": "1.1.0",
"version": "1.1.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
Expand Down
22 changes: 22 additions & 0 deletions common/sdk/src/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
OfflineAminoSigner,
pubkeyToAddress,
Secp256k1HdWallet,
Secp256k1Wallet,
Expand All @@ -7,6 +8,7 @@ import { fromBase64, fromHex } from "@cosmjs/encoding";
import {
DirectSecp256k1HdWallet,
DirectSecp256k1Wallet,
OfflineDirectSigner,
} from "@cosmjs/proto-signing";
import { RequestAccountResponse } from "@cosmostation/extension-client/types/message";
import { verifyADR36Amino } from "@keplr-wallet/cosmos";
Expand Down Expand Up @@ -120,6 +122,26 @@ export class KyveSDK {
return getSigningKyveClient(this.config, signedClient, aminoSigner);
}

/**
* create a client from offline signers
* @param offlineSigner - offline signer
* @param offlineAminoSigner - offline amino signer
* @param walletName - optinal wallet name
* @return Promise<KyveClient>
*/
async fromOfflineSigner(
offlineSigner: OfflineDirectSigner | OfflineAminoSigner,
offlineAminoSigner: OfflineAminoSigner,
walletName?: string
): Promise<KyveClient> {
return getSigningKyveClient(
this.config,
offlineSigner,
offlineAminoSigner,
walletName
);
}

/**
* Create a client from Keplr wallet if installed
* @return Promise<KyveWebClient>
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.1.4](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-01-26)

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

## [1.1.3](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-01-05)

**Note:** Version bump only for package @kyvejs/tendermint-bsync
Expand Down
4 changes: 2 additions & 2 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.1.3",
"version": "1.1.4",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc",
Expand Down Expand Up @@ -28,7 +28,7 @@
"singleQuote": true
},
"dependencies": {
"@kyvejs/protocol": "1.1.3",
"@kyvejs/protocol": "1.1.4",
"@grpc/grpc-js": "^1.9.2",
"axios": "^0.27.2",
"dotenv": "^16.3.1"
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.1.4](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-01-26)

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

## [1.1.3](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-01-05)

**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.1.3",
"version": "1.1.4",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc",
Expand Down Expand Up @@ -28,7 +28,7 @@
"singleQuote": true
},
"dependencies": {
"@kyvejs/protocol": "1.1.3",
"@kyvejs/protocol": "1.1.4",
"@grpc/grpc-js": "^1.9.2",
"axios": "^0.27.2",
"dotenv": "^16.3.1"
Expand Down
4 changes: 4 additions & 0 deletions integrations/tendermint/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.4](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-01-26)

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

## [1.1.3](https://github.com/KYVENetwork/kyvejs/compare/@kyvejs/[email protected]...@kyvejs/[email protected]) (2024-01-05)

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

## [1.3.1](https://github.com/KYVENetwork/kyvejs/compare/@kyve/[email protected]...@kyve/[email protected]) (2024-01-26)

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

# [1.3.0](https://github.com/KYVENetwork/kyvejs/compare/@kyve/[email protected]...@kyve/[email protected]) (2024-01-25)

### Features

- added home flag for kysor home directory ([#117](https://github.com/KYVENetwork/kyvejs/issues/117)) ([1c3b893](https://github.com/KYVENetwork/kyvejs/commit/1c3b89343bcbebf5d3d91e7d4eab96dc85c7d8cd))

## [1.2.1](https://github.com/KYVENetwork/kyvejs/compare/@kyve/[email protected]...@kyve/[email protected]) (2023-12-15)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 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.2.1",
"version": "1.3.1",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"homepage": "https://github.com/KYVENetwork/kysor#readme",
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"@kyvejs/sdk": "1.1.0",
"@kyvejs/sdk": "1.1.1",
"@kyvejs/types": "1.2.0",
"axios": "^0.27.2",
"bignumber.js": "^9.1.0",
Expand Down
18 changes: 12 additions & 6 deletions tools/kysor/src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Command } from "commander";
import fs from "fs";
import path from "path";

import { HOME } from "../utils/constants";
import { USER_HOME, KYSOR_DIR } from "../utils/constants";

const init = new Command("init").description("Init KYSOR");

Expand All @@ -18,6 +18,10 @@ init
"--rest <string>",
"Comma separated list of rest endpoints. If the first fails the next endpoint will be used as fallback. "
)
.option(
"--home <string>",
"The location of the .kysor home directory where binaries and configs are stored."
)
.option(
"--coin-denom <string>",
"The denom of the coin, this value will be loaded by default based on the chain id"
Expand All @@ -36,16 +40,18 @@ init
)
.action(async (options) => {
try {
if (fs.existsSync(path.join(HOME, `config.toml`))) {
const home = path.join(options.home || USER_HOME, KYSOR_DIR);

if (fs.existsSync(path.join(home, `config.toml`))) {
console.log(
`KYSOR was already initialized. You can directly edit the config file under ${path.join(
HOME,
home,
`config.toml`
)}`
);
} else {
// create KYSOR home directory
fs.mkdirSync(HOME, {
fs.mkdirSync(home, {
recursive: true,
});

Expand Down Expand Up @@ -93,12 +99,12 @@ init
};

fs.writeFileSync(
path.join(HOME, `config.toml`),
path.join(home, `config.toml`),
TOML.stringify(config as any)
);

console.log(
`Successfully initialized KYSOR in the following home directory: ${HOME}`
`Successfully initialized KYSOR in the following home directory: ${home}`
);
}
} catch (err) {
Expand Down
4 changes: 4 additions & 0 deletions tools/kysor/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ const start = new Command("start").description("Start KYSOR");

start
.requiredOption("-v, --valaccount <string>", "Name of the valaccount to run")
.option(
"--home <string>",
"The location of the .kysor home directory where binaries and configs are stored."
)
.option(
"-e, --env-file <string>",
"Specify the path to an .env file which should be used when starting a binary"
Expand Down
Loading

0 comments on commit 01eb6e7

Please sign in to comment.