diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 3568f22ad0..81d93d1d9a 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -6,178 +6,127 @@ jobs:
test-protocol-e2e:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- with:
- fetch-depth: '0'
- - uses: actions/setup-go@v3
- with:
- go-version: 1.20.5
-
- # Setup Paths
- - name: home
- run: pwd && ls -l
- - name: ls usr
- run: ls -l /home/runner/work/lava/lava
- - name: cp lava
- run: cp -r ~/work/lava/lava ~/go/lava
- - name: export PATH
- run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/
- # - name: export
- # run: export PATH=$PATH:/go/lava
- - name: export GOPATH
- run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd`
- - name: export LAVA
- run: export LAVA=/home/runner/work/lava/lava
- - name: go env
- run: go env
- - name: pwd
- run: pwd
- - name: tree
- run: tree
- - name: ls -l
- run: ls -l
-
- ######################################################
- ### Run Lava E2E Tests
- ######################################################
- - name: Run Lava E2E Tests -timeout 1200s
- run: go test ./testutil/e2e/ -run ^TestLavaProtocol$ -v -timeout 1200s # 20mins
-
- - name: tail -n 300 Lavad Logs
- if: always()
- run: tail -n 300 testutil/e2e/protocolLogs/00_StartLava.log
-
- - name: Stake Lava All Logs
- if: always()
- run: cat testutil/e2e/protocolLogs/01_stakeLava.log
-
- - name: Stake Lava Error Only Logs
- if: always()
- continue-on-error: true
- run: cat testutil/e2e/protocolLogs/01_stakeLava_errors.log
-
- - name: head -n 300 JSON Proxy Logs
- if: always()
- run: head -n 300 testutil/e2e/protocolLogs/02_jsonProxy.log
-
- - name: tail -n 300 JSON Proxy Logs
- if: always()
- run: tail -n 300 testutil/e2e/protocolLogs/02_jsonProxy.log
-
- - name: JSON Proxy Error Only Logs
- if: always()
- continue-on-error: true
- run: cat testutil/e2e/protocolLogs/02_jsonProxy_errors.log
-
- - name: JSON Provider All Logs
- if: always()
- run: grep "" testutil/e2e/protocolLogs/03_EthProvider* --exclude="*errors*"
-
- - name: JSON Provider Error Only Logs
- if: always()
- continue-on-error: true
- run: grep "" testutil/e2e/protocolLogs/03_EthProvider* --include="*errors*"
-
- - name: JSON Consumer All Logs
- if: always()
- run: grep "" testutil/e2e/protocolLogs/04_jsonConsumer* --exclude="*errors*"
-
- - name: JSON Consumer Error Only Logs
- if: always()
- continue-on-error: true
- run: grep "" testutil/e2e/protocolLogs/04_jsonConsumer* --include="*errors*"
-
- - name: Lava Provider All Logs
- if: always()
- run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --exclude="*errors*"
-
- - name: Lava Provider Error Only Logs
- if: always()
- continue-on-error: true
- run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --include="*errors*"
-
- - name: Lava over Lava All Logs
- if: always()
- run: cat testutil/e2e/protocolLogs/07_lavaOverLava.log
-
- - name: Lava over Lava Error Only Logs
- if: always()
- continue-on-error: true
- run: cat testutil/e2e/protocolLogs/07_lavaOverLava_errors.log
-
- - name: RPCConsumer Consumer All Logs
- if: always()
- run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --exclude="*errors*"
-
- - name: RPCConsumer Consumer Error Only Logs
- if: always()
- continue-on-error: true
- run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*"
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: "0"
+
+ - uses: actions/setup-go@v3
+ with:
+ go-version: 1.20.5
+
+ ######################################################
+ ### Run Lava Protocol E2E Tests
+ ######################################################
+ - name: Run Lava E2E Tests -timeout 1200s
+ run: go test ./testutil/e2e/ -run ^TestLavaProtocol$ -v -timeout 1200s # 20mins
+
+ - name: tail -n 300 Lavad Logs
+ if: always()
+ run: tail -n 300 testutil/e2e/protocolLogs/00_StartLava.log
+
+ - name: Stake Lava All Logs
+ if: always()
+ run: cat testutil/e2e/protocolLogs/01_stakeLava.log
+
+ - name: Stake Lava Error Only Logs
+ if: always()
+ continue-on-error: true
+ run: cat testutil/e2e/protocolLogs/01_stakeLava_errors.log
+
+ - name: head -n 300 JSON Proxy Logs
+ if: always()
+ run: head -n 300 testutil/e2e/protocolLogs/02_jsonProxy.log
+
+ - name: tail -n 300 JSON Proxy Logs
+ if: always()
+ run: tail -n 300 testutil/e2e/protocolLogs/02_jsonProxy.log
+
+ - name: JSON Proxy Error Only Logs
+ if: always()
+ continue-on-error: true
+ run: cat testutil/e2e/protocolLogs/02_jsonProxy_errors.log
+
+ - name: JSON Provider All Logs
+ if: always()
+ run: grep "" testutil/e2e/protocolLogs/03_EthProvider* --exclude="*errors*"
+
+ - name: JSON Provider Error Only Logs
+ if: always()
+ continue-on-error: true
+ run: grep "" testutil/e2e/protocolLogs/03_EthProvider* --include="*errors*"
+
+ - name: JSON Consumer All Logs
+ if: always()
+ run: grep "" testutil/e2e/protocolLogs/04_jsonConsumer* --exclude="*errors*"
+
+ - name: JSON Consumer Error Only Logs
+ if: always()
+ continue-on-error: true
+ run: grep "" testutil/e2e/protocolLogs/04_jsonConsumer* --include="*errors*"
+
+ - name: Lava Provider All Logs
+ if: always()
+ run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --exclude="*errors*"
+
+ - name: Lava Provider Error Only Logs
+ if: always()
+ continue-on-error: true
+ run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --include="*errors*"
+
+ - name: Lava over Lava All Logs
+ if: always()
+ run: cat testutil/e2e/protocolLogs/07_lavaOverLava.log
+
+ - name: Lava over Lava Error Only Logs
+ if: always()
+ continue-on-error: true
+ run: cat testutil/e2e/protocolLogs/07_lavaOverLava_errors.log
+
+ - name: RPCConsumer Consumer All Logs
+ if: always()
+ run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --exclude="*errors*"
+
+ - name: RPCConsumer Consumer Error Only Logs
+ if: always()
+ continue-on-error: true
+ run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*"
test-sdk-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
- fetch-depth: '0'
+ fetch-depth: "0"
+
- uses: actions/setup-go@v3
with:
- go-version: 1.20.5
-
- # Setup Paths
- - name: home
- run: pwd && ls -l
- - name: ls usr
- run: ls -l /home/runner/work/lava/lava
- - name: cp lava
- run: cp -r ~/work/lava/lava ~/go/lava
- - name: export PATH
- run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/
- # - name: export
- # run: export PATH=$PATH:/go/lava
- - name: export GOPATH
- run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd`
- - name: export LAVA
- run: export LAVA=/home/runner/work/lava/lava
- - name: go env
- run: go env
- - name: pwd
- run: pwd
- - name: tree
- run: tree
- - name: ls -l
- run: ls -l
+ go-version: "1.20.5"
# Install Node.js
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
- node-version: 20
-
- # install ts-node
+ node-version: "21"
+
+ - name: Init the SDK
+ run: GOPATH=~/go ./scripts/init_sdk.sh
+ working-directory: ./ecosystem/lava-sdk
+
+ - name: Build
+ run: yarn build
+ working-directory: ./ecosystem/lava-sdk
+
- name: Install ts-node
run: npm install -g ts-node
- # Install dependencies and build
- - name: Install dependencies and build
- run: |
- cd ecosystem/lava-sdk
- npm install
- npm run build
-
- name: Install telescope dependencies
- run: |
- go mod tidy
- cd ecosystem/lavajs
- npm install
- npm run e2e-setup
+ run: yarn; yarn e2e-setup
+ working-directory: ./ecosystem/lavajs
- - name: setup test environment
- run: |
- cd testutil/e2e/sdk/tests
- npm install --save-dev @types/node
+ - name: Setup test environment
+ run: npm init --yes; npm install --save-dev @types/node
######################################################
- ### Run Lava E2E Tests
+ ### Run Lava SDK E2E Tests
######################################################
- name: Run Lava E2E Tests -timeout 1200s
run: go test ./testutil/e2e/ -run ^TestLavaSDK -v -timeout 1200s # 20mins
@@ -246,70 +195,46 @@ jobs:
test-payment-e2e:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
- with:
- fetch-depth: '0'
- - uses: actions/setup-go@v3
- with:
- go-version: 1.20.5
-
- # Setup Paths
- - name: home
- run: pwd && ls -l
- - name: ls usr
- run: ls -l /home/runner/work/lava/lava
- - name: cp lava
- run: cp -r ~/work/lava/lava ~/go/lava
- - name: export PATH
- run: export PATH=$PATH:/go:/go/bin:$(go env GOPATH)/bin:/usr/local:`pwd`:/home/runner/work/lava/lava/
- # - name: export
- # run: export PATH=$PATH:/go/lava
- - name: export GOPATH
- run: export GOPATH=$GOPATH:$(go env GOPATH):/go:/go/lava:/usr/local:`pwd`
- - name: export LAVA
- run: export LAVA=/home/runner/work/lava/lava
- - name: go env
- run: go env
- - name: pwd
- run: pwd
- - name: tree
- run: tree
- - name: ls -l
- run: ls -l
-
- ######################################################
- ### Run Lava E2E Tests
- ######################################################
- - name: Run Lava Payment E2E Tests -timeout 1200s
- run: go test ./testutil/e2e/ -run ^TestLavaProtocolPayment$ -v -timeout 1200s # 20mins
-
- - name: tail -n 300 Lavad Logs
- if: always()
- run: tail -n 300 testutil/e2e/protocolLogs/00_StartLava.log
-
- - name: Stake Lava All Logs
- if: always()
- run: cat testutil/e2e/protocolLogs/01_stakeLavaForPayment.log
-
- - name: Stake Lava Error Only Logs
- if: always()
- continue-on-error: true
- run: cat testutil/e2e/protocolLogs/01_stakeLava_errors.log
-
- - name: Lava Provider All Logs
- if: always()
- run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --exclude="*errors*"
-
- - name: Lava Provider Error Only Logs
- if: always()
- continue-on-error: true
- run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --include="*errors*"
-
- - name: RPCConsumer Consumer All Logs
- if: always()
- run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --exclude="*errors*"
-
- - name: RPCConsumer Consumer Error Only Logs
- if: always()
- continue-on-error: true
- run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*"
\ No newline at end of file
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: "0"
+ - uses: actions/setup-go@v3
+ with:
+ go-version: 1.20.5
+
+ ######################################################
+ ### Run Lava Protocol Payment E2E Tests
+ ######################################################
+ - name: Run Lava Payment E2E Tests -timeout 1200s
+ run: go test ./testutil/e2e/ -run ^TestLavaProtocolPayment$ -v -timeout 1200s # 20mins
+
+ - name: tail -n 300 Lavad Logs
+ if: always()
+ run: tail -n 300 testutil/e2e/protocolLogs/00_StartLava.log
+
+ - name: Stake Lava All Logs
+ if: always()
+ run: cat testutil/e2e/protocolLogs/01_stakeLavaForPayment.log
+
+ - name: Stake Lava Error Only Logs
+ if: always()
+ continue-on-error: true
+ run: cat testutil/e2e/protocolLogs/01_stakeLava_errors.log
+
+ - name: Lava Provider All Logs
+ if: always()
+ run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --exclude="*errors*"
+
+ - name: Lava Provider Error Only Logs
+ if: always()
+ continue-on-error: true
+ run: grep "" testutil/e2e/protocolLogs/05_LavaProvider* --include="*errors*"
+
+ - name: RPCConsumer Consumer All Logs
+ if: always()
+ run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --exclude="*errors*"
+
+ - name: RPCConsumer Consumer Error Only Logs
+ if: always()
+ continue-on-error: true
+ run: grep "" testutil/e2e/protocolLogs/06_RPCConsumer* --include="*errors*"
diff --git a/.github/workflows/lava_sdk_tests.yml b/.github/workflows/lava_sdk_tests.yml
index 6edac0c55f..e359506d3a 100644
--- a/.github/workflows/lava_sdk_tests.yml
+++ b/.github/workflows/lava_sdk_tests.yml
@@ -3,27 +3,48 @@ name: Lava SDK Tests
on: [pull_request]
jobs:
- main:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
-
- - name: Cache dependencies
- uses: actions/cache@v3
- with:
- path: ~/.yarn
- key: yarn-${{ hashFiles('yarn.lock') }}
- restore-keys: yarn-
-
- - name: Install modules
- run: yarn install
- working-directory: ./ecosystem/lava-sdk
-
- - name: ESLint
- run: ./node_modules/.bin/eslint '**/*.ts'
- working-directory: ./ecosystem/lava-sdk
-
- - name: Test
- run: ./node_modules/.bin/jest ./src
- working-directory: ./ecosystem/lava-sdk
+ main:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Cache dependencies
+ uses: actions/cache@v3
+ with:
+ path: ~/.yarn
+ key: yarn-${{ hashFiles('yarn.lock') }}
+ restore-keys: yarn-
+
+ - uses: actions/setup-go@v3
+ with:
+ go-version: "1.20.5"
+
+ - uses: actions/setup-node@v3
+ with:
+ node-version: "21"
+
+ - name: Install protoc executable
+ run: sudo apt update && sudo apt install -y protobuf-compiler
+
+ - name: Install yarn and protoc-gen-ts
+ run: npm install -g yarn protoc-gen-ts
+
+ - name: Run go mod tidy
+ run: go mod tidy
+
+ - name: Install modules
+ run: yarn
+ working-directory: ./ecosystem/lava-sdk
+
+ - name: Prepare proto files
+ run: GOPATH=~/go ./scripts/protoc_grpc_relay.sh
+ working-directory: ./ecosystem/lava-sdk
+
+ - name: ESLint
+ run: ./node_modules/.bin/eslint '**/*.ts'
+ working-directory: ./ecosystem/lava-sdk
+
+ - name: Test
+ run: ./node_modules/.bin/jest ./src
+ working-directory: ./ecosystem/lava-sdk
diff --git a/.gitignore b/.gitignore
index d4ac7cfc1b..09aeb9d948 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,25 +48,14 @@ ecosystem/lava-sdk/.vscode
ecosystem/lava-sdk/.npmrc
ecosystem/lava-sdk/package-lock.json
ecosystem/lava-sdk/examples/jsonRPC_test.ts
+ecosystem/lava-sdk/examples/jsonRPC_badge_test.ts
ecosystem/lava-sdk/examples/restAPI_test.ts
+ecosystem/lava-sdk/examples/restAPI_badge_test.ts
ecosystem/lava-sdk/examples/tendermintRPC_test.ts
-ecosystem/lava-sdk/examples/tendermintRPC_test2.ts
-ecosystem/lava-sdk/examples/jsonRPC_badge_test.ts
-ecosystem/lava-sdk/examples/consumerSessionManager_test.ts
+ecosystem/lava-sdk/examples/tendermintRPC_badge_test.ts
ecosystem/lava-sdk/pairingList.json
-# ecosystem/lava-sdk/proto/**/*[!.proto] #tried but didnt work
-ecosystem/lava-sdk/proto/**/*.yaml
-ecosystem/lava-sdk/proto/**/*.bazel
-ecosystem/lava-sdk/proto/**/*.bzl
-ecosystem/lava-sdk/proto/**/*.md
-ecosystem/lava-sdk/proto/**/*.sh
-ecosystem/lava-sdk/proto/**/*.json
-ecosystem/lava-sdk/proto/**/*.go
-ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/amino
-ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/cosmos
-ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/gogoproto
-ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/google
-ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/tendermint
+ecosystem/lava-sdk/proto
+ecosystem/lava-sdk/src/grpc_web_services
ecosystem/lava-sdk/src/codec
ecosystem/lava-sdk/proto/lavanet
diff --git a/cookbook/specs/spec_add_cosmossdk.json b/cookbook/specs/spec_add_cosmossdk.json
index 7e1f8c83be..3371ced72b 100644
--- a/cookbook/specs/spec_add_cosmossdk.json
+++ b/cookbook/specs/spec_add_cosmossdk.json
@@ -830,7 +830,8 @@
"name": "/cosmos/base/tendermint/v1beta1/validatorsets/{height}",
"block_parsing": {
"parser_arg": [
- "height"
+ "height",
+ "="
],
"parser_func": "PARSE_DICTIONARY"
},
diff --git a/ecosystem/lava-sdk/README.md b/ecosystem/lava-sdk/README.md
index c1e3d3aa7e..be75040e2b 100644
--- a/ecosystem/lava-sdk/README.md
+++ b/ecosystem/lava-sdk/README.md
@@ -9,14 +9,17 @@
Access Web3 APIs, the Lava way 🌋
-
+
JavaScript/TypeScript SDK reference implementation designed for developers looking for access through the Lava Network. It can be added to your app/dapp and run in browsers to provide multi-chain peer-to-peer access to blockchain APIs.
# Official Documentation
+
https://docs.lavanet.xyz/access-sdk
+
# Roadmap
+
Roadmap highlights:
1. ~Send Relays per Lava Pairing~ ✅
@@ -42,23 +45,26 @@ could be found here: https://github.com/lavanet/lava-sdk-providers
# Installation
### Important Version Control
- * Please check the current Lava node version before installing the lava-sdk.
-
- * Make sure you are using the `"Latest"` tag. You can check the latest releases here: https://github.com/lavanet/lava/releases
- * lava-sdk releases can be found here: https://github.com/lavanet/lava-sdk/releases or in the npm official site: https://www.npmjs.com/package/@lavanet/lava-sdk
+- Please check the current Lava node version before installing the lava-sdk.
+
+- Make sure you are using the `"Latest"` tag. You can check the latest releases here: https://github.com/lavanet/lava/releases
+
+- lava-sdk releases can be found here: https://github.com/lavanet/lava-sdk/releases or in the npm official site: https://www.npmjs.com/package/@lavanet/lava-sdk
### For Example
+
If lava latest release version is `v0.8.0` or any minor version such as v0.8.1 ➡️ sdk version will be `v0.8.0`
---
### Prerequisites (Beta version)
+
_SDK setup requires additional steps at the moment, but we're working on minimizing prerequisites as we progress through the roadmap._
1. Create a wallet on the Lava Testnet, have LAVA tokens
1. Stake in the chain you want to access
-2. Stake in Lava chain
+1. Stake in Lava chain
Need help? We've got you covered 😻 Head over to our [Discord](https://discord.gg/5VcqgwMmkA) channel `#developers` and we'll provide testnet tokens and further support
@@ -71,9 +77,10 @@ yarn add @lavanet/lava-sdk
(back to top)
+
# Usage
-A single instance of the SDK establishes a connection with a specific blockchain network using a single RPC interface. _Need multiple chains or use multiple RPC interfaces? Create multiple instances._
+A single instance of the SDK establishes a connection with a specific blockchain network using a single RPC interface. _Need multiple chains or use multiple RPC interfaces? Create multiple instances._
To use the SDK, you will first need to initialize it.
@@ -98,7 +105,8 @@ const badgeOptions: BadgeOptions = {
authentication: authValue, // string (Optional)
};
```
-Lava SDK options:
+
+Lava SDK options:
- `badge` parameter specifies the public URL of the badge server and the ID of the project you want to connect to. If you enable the badge, you should remove the `privateKey`
@@ -130,7 +138,6 @@ Badge options:
- `authentication` is an optional parameter that specifies any additional authentication requirements
-
### Private keys vs Badge server
In the LavaSDK, users have the option to authenticate using either a private key or a badge server. Both methods have their advantages and specific use cases. Let's dive into the details of each:
@@ -145,7 +152,7 @@ However, it's crucial to note that using a private key directly, especially in a
The Badge server is a dedicated Go service that clients can initiate. It acts as an intermediary between the LavaSDK and the Lava Network, ensuring that no secrets or private keys are stored directly within the SDK. Instead, all sensitive information is securely held on the Badge server, with the LavaSDK only communicating with this server.
-The primary advantage of using the Badge server is the enhanced security it offers. Additionally, the Badge server pre-updates some information like pairing list for current epoch, allowing the LavaSDK to fetch data more rapidly by merely pinging the server. This results in faster and more efficient operations.
+The primary advantage of using the Badge server is the enhanced security it offers. Additionally, the Badge server pre-updates some information like pairing list for current epoch, allowing the LavaSDK to fetch data more rapidly by merely pinging the server. This results in faster and more efficient operations.
However, there are some challenges to consider. Users need to bootstrap and maintain the Badge server, which might require additional resources and expertise. For those interested in exploring the Badge server without setting up their own, we have deployed a Lava Test Badge server. You can access and experiment with it through our gateway application at [Lava Gateway](https://accounts.lavanet.xyz/)
@@ -156,7 +163,8 @@ For detailed instructions on how to start the Badge server, refer to our [docume
### Examples:
# Badge full flow example:
-```typescript
+
+```typescript
async function getLatestBlock(): Promise {
// Create dAccess for Ethereum Mainnet
// Default rpcInterface for Ethereum Mainnet is jsonRPC
@@ -183,56 +191,60 @@ async function getLatestBlock(): Promise {
```
# Private Key flow example:
-```typescript
+
+```typescript
const cosmosHub = await LavaSDK.create({
- // private key with an active subscription
- privateKey: "",
+ // private key with an active subscription
+ privateKey: "",
- // chainID for Cosmos Hub
- chainIds: "COS5",
+ // chainID for Cosmos Hub
+ chainIds: "COS5",
- // geolocation 1 for North america - geolocation 2 for Europe providers
- // default value is 1
- geolocation: "2",
+ // geolocation 1 for North america - geolocation 2 for Europe providers
+ // default value is 1
+ geolocation: "2",
+});
+
+// Get abci_info
+
+const results = [];
+
+for (let i = 0; i < 10; i++) {
+ const info = await cosmosHub.sendRelay({
+ method: "abci_info",
+ params: [],
});
- // Get abci_info
-
- const results = [];
-
- for (let i = 0; i < 10; i++) {
- const info = await cosmosHub.sendRelay({
- method: "abci_info",
- params: [],
- });
-
- // Parse and extract response
- const parsedInfo = info.result.response;
-
- // Extract latest block number
- const latestBlockNumber = parsedInfo.last_block_height;
- // Fetch latest block
- const latestBlock = await cosmosHub.sendRelay({
- method: "block",
- params: [latestBlockNumber],
- });
- results.push(latestBlock);
- console.log("Latest block:", latestBlock);
- }
+ // Parse and extract response
+ const parsedInfo = info.result.response;
+
+ // Extract latest block number
+ const latestBlockNumber = parsedInfo.last_block_height;
+ // Fetch latest block
+ const latestBlock = await cosmosHub.sendRelay({
+ method: "block",
+ params: [latestBlockNumber],
+ });
+ results.push(latestBlock);
+ console.log("Latest block:", latestBlock);
+}
```
### TendermintRPC / JSON-RPC interface:
+
```typescript
- const blockResponse = await lavaSDK.sendRelay({
- method: "block",
- params: ["5"],
- });
+const blockResponse = await lavaSDK.sendRelay({
+ method: "block",
+ params: ["5"],
+});
```
+
Here, `method` is the RPC method and `params` is an array of strings representing parameters for the method.
You can find more examples for tendermintRPC sendRelay calls [TendermintRPC examples](https://github.com/lavanet/lava-sdk/blob/main/examples/tendermintRPC.ts)
### Rest API interface:
+
```typescript
const data = await lavaSDK.sendRelay({
method: "GET",
@@ -243,6 +255,7 @@ const data = await lavaSDK.sendRelay({
},
});
```
+
In this case, `method` is the HTTP method (either GET or POST), `url` is the REST endpoint, and `data` is the query data.
You can find more examples for rest sendRelay calls [Rest examples](https://github.com/lavanet/lava-sdk/blob/main/examples/restAPI.ts)
@@ -250,18 +263,23 @@ You can find more examples for rest sendRelay calls [Rest examples](https://gith
(back to top)
+
# Troubleshooting
### Webpack >= 5
+
If you are using `create-react-app` version 5 or higher, or `Angular` version 11 or higher, you may encounter build issues. This is because these versions use `webpack version 5`, which does not include Node.js polyfills.
#### Create-react-app solution
1. Install react-app-rewired and the missing modules:
+
```bash
yarn add --dev react-app-rewired crypto-browserify stream-browserify browserify-zlib assert stream-http https-browserify os-browserify url buffer process net tls bufferutil utf-8-validate path-browserify
```
+
2. Create `config-overrides.js` in the root of your project folder, and append the following lines:
+
```javascript
const webpack = require("webpack");
@@ -302,6 +320,7 @@ module.exports = function override(config) {
```
3. In the `package.json` change the script for start, test, build and eject:
+
```JSON
"scripts": {
"start": "react-app-rewired start",
@@ -310,11 +329,11 @@ module.exports = function override(config) {
"eject": "react-scripts eject"
},
```
+
#### Angular solution (TBD)
(back to top)
-
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
@@ -322,9 +341,9 @@ module.exports = function override(config) {
[![Apache 2 License][license-shield]]([license-url])
[![LinkedIn][linkedin-shield]][linkedin-url]
-
+
[contributors-shield]: https://img.shields.io/github/contributors/lavanet/lava-sdk.svg?style=for-the-badge
[contributors-url]: https://github.com/lavanet/lava-sdk/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/lavanet/lava-sdk.svg?style=for-the-badge
@@ -338,21 +357,20 @@ module.exports = function override(config) {
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
[linkedin-url]: https://www.linkedin.com/company/lava-network/
+# Contribution
-# Contribution FAQ
+To get started, all you need to do is run
-Q: how to compile the protobufs?
-A:
```bash
-sudo apt install -y protobuf-compiler
+GOPATH= ./scripts/init_sdk.sh
```
-cd go/.../lava/ecosystem/lava-sdk
-If you've made changes to the protobufs directory run:
+\* Replace the with the Go path on your machine
+
+And to build, run
+
```bash
-./scripts/protoc.sh
+yarn build
```
-If you've made changes to relay.proto specifically run:
-```bash
-./scripts/protoc_grpc_relay.sh
-```
\ No newline at end of file
+
+And that's it!
diff --git a/ecosystem/lava-sdk/examples/jsonRPC.ts b/ecosystem/lava-sdk/examples/jsonRPC.ts
index fc87fc6c44..cfed881131 100644
--- a/ecosystem/lava-sdk/examples/jsonRPC.ts
+++ b/ecosystem/lava-sdk/examples/jsonRPC.ts
@@ -11,23 +11,12 @@ import { LavaSDK } from "../src/sdk/sdk";
But not rpc calls with named parameters
{"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3}
*/
-async function getLatestBlock(): Promise {
- // Create dAccess for Ethereum Mainnet
- // Default rpcInterface for Ethereum Mainnet is jsonRPC
- const ethereum = await LavaSDK.create({
- // private key with an active subscription
- privateKey: "",
-
- // chainID for Ethereum mainnet
- chainIds: "ETH1",
-
- // geolocation 1 for North america - geolocation 2 for Europe providers
- // default value is 1
- geolocation: "2",
- });
+let lavaSDKInstance: LavaSDK;
+
+async function getLatestBlock(): Promise {
// Get latest block number
- const blockNumberResponse = await ethereum.sendRelay({
+ const blockNumberResponse = await lavaSDKInstance.sendRelay({
method: "eth_blockNumber",
params: [],
});
@@ -39,7 +28,7 @@ async function getLatestBlock(): Promise {
const latestBlockNumber = parsedResponse.result;
// Get latest block
- const latestBlock = await ethereum.sendRelay({
+ const latestBlock = await lavaSDKInstance.sendRelay({
method: "eth_getBlockByNumber",
params: [latestBlockNumber, true],
});
@@ -47,10 +36,49 @@ async function getLatestBlock(): Promise {
return latestBlock;
}
+async function getBatch(): Promise {
+ // Get latest block number
+ const batchResponse = await lavaSDKInstance.sendRelay({
+ relays: [
+ {
+ method: "eth_blockNumber",
+ params: [],
+ },
+ {
+ method: "eth_chainId",
+ params: [],
+ },
+ ],
+ });
+
+ return batchResponse;
+}
+
(async function () {
try {
+ // Create dAccess for Ethereum Mainnet
+ // Default rpcInterface for Ethereum Mainnet is jsonRPC
+ lavaSDKInstance = await LavaSDK.create({
+ // private key with an active subscription
+ privateKey: "",
+
+ // chainID for Ethereum mainnet
+ chainIds: "ETH1",
+
+ // geolocation 1 for North america - geolocation 2 for Europe providers
+ // default value is 1
+ geolocation: "",
+ });
+
+ console.log("Sending single request:");
const latestBlock = await getLatestBlock();
console.log("Latest block:", latestBlock);
+
+ console.log("\n");
+
+ console.log("Sending batch request:");
+ const batchResponse = await getBatch();
+ console.log("Batch response:", JSON.stringify(batchResponse, null, 2));
process.exit(0);
} catch (error) {
console.error("Error getting latest block:", error);
diff --git a/ecosystem/lava-sdk/examples/jsonRPC_badge.ts b/ecosystem/lava-sdk/examples/jsonRPC_badge.ts
index 9ad3e2599f..44536de750 100644
--- a/ecosystem/lava-sdk/examples/jsonRPC_badge.ts
+++ b/ecosystem/lava-sdk/examples/jsonRPC_badge.ts
@@ -11,26 +11,12 @@ import { LavaSDK } from "../src/sdk/sdk";
But not rpc calls with named parameters
{"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3}
*/
-async function getLatestBlock(): Promise {
- // Create dAccess for Ethereum Mainnet
- // Default rpcInterface for Ethereum Mainnet is jsonRPC
- const ethereum = await LavaSDK.create({
- // badge data of an active badge server
- badge: {
- badgeServerAddress: "",
- projectId: "",
- },
-
- // chainID for Ethereum mainnet
- chainIds: "ETH1",
-
- // geolocation 1 for North america - geolocation 2 for Europe providers
- // default value is 1
- geolocation: "2",
- });
+let lavaSDKInstance: LavaSDK;
+
+async function getLatestBlock(): Promise {
// Get latest block number
- const blockNumberResponse = await ethereum.sendRelay({
+ const blockNumberResponse = await lavaSDKInstance.sendRelay({
method: "eth_blockNumber",
params: [],
});
@@ -42,7 +28,7 @@ async function getLatestBlock(): Promise {
const latestBlockNumber = parsedResponse.result;
// Get latest block
- const latestBlock = await ethereum.sendRelay({
+ const latestBlock = await lavaSDKInstance.sendRelay({
method: "eth_getBlockByNumber",
params: [latestBlockNumber, true],
});
@@ -50,10 +36,50 @@ async function getLatestBlock(): Promise {
return latestBlock;
}
+async function getBatch(): Promise> {
+ // Get abci_info and status
+ return await lavaSDKInstance.sendRelay({
+ relays: [
+ {
+ method: "abci_info",
+ params: [],
+ },
+ {
+ method: "status",
+ params: [],
+ },
+ ],
+ });
+}
+
(async function () {
try {
+ // Create dAccess for Ethereum Mainnet
+ // Default rpcInterface for Ethereum Mainnet is jsonRPC
+ lavaSDKInstance = await LavaSDK.create({
+ // badge data of an active badge server
+ badge: {
+ badgeServerAddress: "",
+ projectId: "",
+ },
+
+ // chainID for Ethereum mainnet
+ chainIds: "ETH1",
+
+ // geolocation 1 for North america - geolocation 2 for Europe providers
+ // default value is 1
+ geolocation: "",
+ });
+
+ console.log("Sending single request:");
const latestBlock = await getLatestBlock();
console.log("Latest block:", latestBlock);
+
+ console.log("\n");
+
+ console.log("Sending batch request:");
+ const batchResponse = await getBatch();
+ console.log("Batch response:", JSON.stringify(batchResponse, null, 2));
process.exit(0);
} catch (error) {
console.error("Error getting latest block:", error);
diff --git a/ecosystem/lava-sdk/examples/restAPI.ts b/ecosystem/lava-sdk/examples/restAPI.ts
index 2d5b524ef0..80a3da96c1 100644
--- a/ecosystem/lava-sdk/examples/restAPI.ts
+++ b/ecosystem/lava-sdk/examples/restAPI.ts
@@ -2,15 +2,15 @@
import { LavaSDK } from "../src/sdk/sdk";
/*
- Demonstrates how to use LavaSDK to send rest API calls to the Juno Mainnet.
+ Demonstrates how to use LavaSDK to send rest API calls to the Lava Network.
You can find a list with all supported chains (https://github.com/lavanet/lava-sdk/blob/main/supportedChains.json)
*/
async function getLatestBlockAndValidators(): Promise<[string, string]> {
- // Create dAccess for Juno Mainnet
- // Default rpcInterface for Juno Mainnet is tendermintRPC
+ // Create dAccess for Lava Network
+ // Default rpcInterface for Lava Network is tendermintRPC
// If you want to use rest it needs to be explicitly defined
- const lavaSDK = await LavaSDK.create({
+ const lavaSDKInstance = await LavaSDK.create({
// private key with an active subscription
privateKey: "",
@@ -19,26 +19,22 @@ async function getLatestBlockAndValidators(): Promise<[string, string]> {
// geolocation 1 for North america - geolocation 2 for Europe providers
// default value is 1
- geolocation: "2",
+ geolocation: "",
// rpcInterface default is tendermintrpc / jsonrpc for respective chains.
// in this example we want to test rest so we need to specify it
});
// Get latest block
- const latestBlock = await lavaSDK.sendRelay({
+ const latestBlock = await lavaSDKInstance.sendRelay({
connectionType: "GET",
url: "/cosmos/base/tendermint/v1beta1/node_info",
});
// Get latest validator-set
- const validators = await lavaSDK.sendRelay({
+ const validators = await lavaSDKInstance.sendRelay({
connectionType: "GET",
- url: "/cosmos/base/tendermint/v1beta1/validatorsets/latest",
- data: {
- "pagination.count_total": true,
- "pagination.reverse": "true",
- },
+ url: "/cosmos/base/tendermint/v1beta1/validatorsets/latest?pagination.count_total=true&pagination.reverse=true",
});
return [latestBlock, validators];
diff --git a/ecosystem/lava-sdk/examples/restAPI_badge.ts b/ecosystem/lava-sdk/examples/restAPI_badge.ts
new file mode 100644
index 0000000000..9cbbc56493
--- /dev/null
+++ b/ecosystem/lava-sdk/examples/restAPI_badge.ts
@@ -0,0 +1,56 @@
+// TODO when we publish package we will import latest stable version and not using relative path
+import { LavaSDK } from "../src/sdk/sdk";
+
+/*
+ Demonstrates how to use LavaSDK to send rest API calls to the Lava Network.
+
+ You can find a list with all supported chains (https://github.com/lavanet/lava-sdk/blob/main/supportedChains.json)
+*/
+async function getLatestBlockAndValidators(): Promise<[string, string]> {
+ // Create dAccess for Lava Network
+ // Default rpcInterface for Lava Network is tendermintRPC
+ // If you want to use rest it needs to be explicitly defined
+ const lavaSDKInstance = await LavaSDK.create({
+ // badge data of an active badge server
+ badge: {
+ badgeServerAddress: "",
+ projectId: "",
+ },
+
+ // chainID for Cosmos Hub
+ chainIds: "LAV1",
+
+ // geolocation 1 for North america - geolocation 2 for Europe providers
+ // default value is 1
+ geolocation: "",
+
+ // rpcInterface default is tendermintrpc / jsonrpc for respective chains.
+ // in this example we want to test rest so we need to specify it
+ });
+
+ // Get latest block
+ const latestBlock = await lavaSDKInstance.sendRelay({
+ connectionType: "GET",
+ url: "/cosmos/base/tendermint/v1beta1/node_info",
+ });
+
+ // Get latest validator-set
+ const validators = await lavaSDKInstance.sendRelay({
+ connectionType: "GET",
+ url: "/cosmos/base/tendermint/v1beta1/validatorsets/latest?pagination.count_total=true&pagination.reverse=true",
+ });
+
+ return [latestBlock, validators];
+}
+
+(async function () {
+ try {
+ const [latestBlock, validators] = await getLatestBlockAndValidators();
+ console.log("Latest block:", latestBlock);
+ console.log("Latest validators:", validators);
+ process.exit(0);
+ } catch (error) {
+ console.error("Error getting latest block:", error);
+ process.exit(1);
+ }
+})();
diff --git a/ecosystem/lava-sdk/examples/tendermintRPC.ts b/ecosystem/lava-sdk/examples/tendermintRPC.ts
index a5349544c4..29c34a023f 100644
--- a/ecosystem/lava-sdk/examples/tendermintRPC.ts
+++ b/ecosystem/lava-sdk/examples/tendermintRPC.ts
@@ -11,51 +11,69 @@ import { LavaSDK } from "../src/sdk/sdk";
But not rpc calls with named parameters
{"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3}
*/
+
+let lavaSDKInstance: LavaSDK;
+
async function getLatestBlock(): Promise> {
- // Create dAccess for Cosmos Hub
- // Default rpcInterface for Cosmos Hub is tendermintRPC
- const cosmosHub = await LavaSDK.create({
- // private key with an active subscription
- privateKey: "",
+ // Get abci_info
+ const info = await lavaSDKInstance.sendRelay({
+ method: "abci_info",
+ params: [],
+ });
- // chainID for Cosmos Hub
- chainIds: "LAV1",
+ // Parse and extract response
+ const parsedInfo = info.result.response;
- // geolocation 1 for North america - geolocation 2 for Europe providers
- // default value is 1
- geolocation: "2",
+ // Extract latest block number
+ const latestBlockNumber = parsedInfo.last_block_height;
+ // Fetch latest block
+ return await lavaSDKInstance.sendRelay({
+ method: "block",
+ params: [latestBlockNumber],
});
+}
+async function getBatch(): Promise> {
// Get abci_info
+ return await lavaSDKInstance.sendRelay({
+ relays: [
+ {
+ method: "abci_info",
+ params: [],
+ },
+ {
+ method: "status",
+ params: [],
+ },
+ ],
+ });
+}
- const results = [];
-
- for (let i = 0; i < 10; i++) {
- const info = await cosmosHub.sendRelay({
- method: "abci_info",
- params: [],
- });
+(async function () {
+ try {
+ // Create dAccess for Cosmos Hub
+ // Default rpcInterface for Cosmos Hub is tendermintRPC
+ lavaSDKInstance = await LavaSDK.create({
+ // private key with an active subscription
+ privateKey: "",
- // Parse and extract response
- const parsedInfo = info.result.response;
+ // chainID for Cosmos Hub
+ chainIds: "LAV1",
- // Extract latest block number
- const latestBlockNumber = parsedInfo.last_block_height;
- // Fetch latest block
- const latestBlock = await cosmosHub.sendRelay({
- method: "block",
- params: [latestBlockNumber],
+ // geolocation 1 for North america - geolocation 2 for Europe providers
+ // default value is 1
+ geolocation: "",
});
- results.push(latestBlock);
+
+ console.log("Sending single request:");
+ const latestBlock = await getLatestBlock();
console.log("Latest block:", latestBlock);
- }
- return results;
-}
-(async function () {
- try {
- const results = await getLatestBlock();
- console.log("results:", results);
+ console.log("\n");
+
+ console.log("Sending batch request:");
+ const batchResponse = await getBatch();
+ console.log("Batch response:", JSON.stringify(batchResponse, null, 2));
process.exit(0);
} catch (error) {
console.error("Error getting latest block:", error);
diff --git a/ecosystem/lava-sdk/examples/tendermintRPC_badge.ts b/ecosystem/lava-sdk/examples/tendermintRPC_badge.ts
new file mode 100644
index 0000000000..f13b06ae82
--- /dev/null
+++ b/ecosystem/lava-sdk/examples/tendermintRPC_badge.ts
@@ -0,0 +1,86 @@
+// TODO when we publish package we will import latest stable version and not using relative path
+import { LavaSDK } from "../src/sdk/sdk";
+
+/*
+ Demonstrates how to use LavaSDK to send tendermintRPC calls to the Lava Network.
+
+ You can find a list with all supported chains (https://github.com/lavanet/lava-sdk/blob/main/supportedChains.json)
+
+ Lava SDK supports only rpc calls with positional parameters
+ {"jsonrpc": "2.0", "method": "block", "params": ["23"], "id": 1}
+ But not rpc calls with named parameters
+ {"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3}
+*/
+
+let lavaSDKInstance: LavaSDK;
+
+async function getLatestBlock(): Promise> {
+ // Get abci_info
+ const info = await lavaSDKInstance.sendRelay({
+ method: "abci_info",
+ params: [],
+ });
+
+ // Parse and extract response
+ const parsedInfo = info.result.response;
+
+ // Extract latest block number
+ const latestBlockNumber = parsedInfo.last_block_height;
+
+ // Fetch latest block
+ return await lavaSDKInstance.sendRelay({
+ method: "block",
+ params: [latestBlockNumber],
+ });
+}
+
+async function getBatch(): Promise> {
+ // Get abci_info and status
+ return await lavaSDKInstance.sendRelay({
+ relays: [
+ {
+ method: "abci_info",
+ params: [],
+ },
+ {
+ method: "status",
+ params: [],
+ },
+ ],
+ });
+}
+
+(async function () {
+ try {
+ // Create dAccess for Lava Network
+ // Default rpcInterface for Lava Network is tendermintRPC
+ lavaSDKInstance = await LavaSDK.create({
+ // badge data of an active badge server
+ badge: {
+ badgeServerAddress: "",
+ projectId: "",
+ },
+
+ // chainID for Lava Network
+ chainIds: "LAV1",
+
+ // geolocation 1 for North america - geolocation 2 for Europe providers
+ // default value is 1
+ geolocation: "",
+ });
+
+ console.log("Sending single request:");
+ const latestBlock = await getLatestBlock();
+ console.log("Latest block:", latestBlock);
+
+ console.log("\n");
+
+ console.log("Sending batch request:");
+ const batchResponse = await getBatch();
+ console.log("Batch response:", JSON.stringify(batchResponse, null, 2));
+ process.exit(0);
+ } catch (error) {
+ console.error("Error getting latest block:", error);
+ process.exit(1);
+ }
+})();
diff --git a/ecosystem/lava-sdk/package.json b/ecosystem/lava-sdk/package.json
index 04a9839d1d..c84fd1325e 100644
--- a/ecosystem/lava-sdk/package.json
+++ b/ecosystem/lava-sdk/package.json
@@ -9,7 +9,6 @@
"tsc": "tsc",
"copy-proto": "cp -r ./src/grpc_web_services bin/src/",
"build": "rm -rf bin && rm -rf dist && yarn tsc && yarn copy-proto && webpack --config webpack.config.js",
- "protoc": "./scripts/protoc.sh",
"server": "http-server dist/ -c-1",
"test": "jest --clearCache && jest ./src",
"jestClear": "jest --clearCache",
@@ -17,14 +16,13 @@
"run_tendermint_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/tendermintRPC.js",
"run_rest_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/restAPI.js",
"run_jsonrpc_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/jsonRPC.js",
- "run_jsonrpc_badge_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/jsonRPC_badge_test.js",
"run_test_tendermint_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/tendermintRPC_test.js",
- "node_test_tendermint_example": "node ./bin/examples/tendermintRPC_test.js",
+ "run_test_tendermint_badge_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/tendermintRPC_badge_test.js",
"run_test_rest_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/restAPI_test.js",
+ "run_test_rest_badge_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/restAPI_badge_test.js",
"run_test_jsonrpc_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/jsonRPC_test.js",
+ "run_test_jsonrpc_badge_example": "yarn tsc && webpack --config webpack.config.js && node ./bin/examples/jsonRPC_badge_test.js",
"node_test_jsonrpc_example": "node ./bin/examples/jsonRPC_test.js",
- "jsonRPC": "node ./bin/examples/jsonRPC.js",
- "restAPI": "node ./bin/examples/restAPI.js",
"prettier": "prettier --check .",
"publish_version": "yarn build; npm publish --access public",
"lint": "eslint '**/*.ts' --fix"
@@ -98,4 +96,4 @@
"node": ">=18",
"npm": ">=6.12.0"
}
-}
+}
\ No newline at end of file
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/baseapp/testutil/messages.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/baseapp/testutil/messages.proto
deleted file mode 100644
index 866e336669..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/baseapp/testutil/messages.proto
+++ /dev/null
@@ -1,39 +0,0 @@
-syntax = "proto3";
-package testdata;
-
-import "gogoproto/gogo.proto";
-import "google/protobuf/any.proto";
-
-option go_package = "github.com/cosmos/cosmos-sdk/baseapp/testutil";
-
-message MsgCounter {
- int64 counter = 1;
- bool fail_on_handler = 2;
-}
-
-message MsgCounter2 {
- int64 counter = 1;
- bool fail_on_handler = 2;
-}
-
-message MsgCreateCounterResponse {}
-
-message MsgKeyValue {
- bytes key = 1;
- bytes value = 2;
- string signer = 3;
-}
-
-message MsgCreateKeyValueResponse {}
-
-service Counter {
- rpc IncrementCounter(MsgCounter) returns (MsgCreateCounterResponse);
-}
-
-service Counter2 {
- rpc IncrementCounter(MsgCounter2) returns (MsgCreateCounterResponse);
-}
-
-service KeyValue {
- rpc Set(MsgKeyValue) returns (MsgCreateKeyValueResponse);
-}
\ No newline at end of file
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/client/v2/internal/testpb/query.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/client/v2/internal/testpb/query.proto
deleted file mode 100644
index 5bb49a0b2a..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/client/v2/internal/testpb/query.proto
+++ /dev/null
@@ -1,55 +0,0 @@
-syntax = "proto3";
-
-package testpb;
-
-import "google/protobuf/timestamp.proto";
-import "google/protobuf/duration.proto";
-import "cosmos_proto/cosmos.proto";
-import "cosmos/base/query/v1beta1/pagination.proto";
-import "cosmos/base/v1beta1/coin.proto";
-
-service Query {
- // Echo returns the request in the response
- rpc Echo(EchoRequest) returns (EchoResponse);
-}
-
-message EchoRequest {
- // u32 is an uint32
- uint32 u32 = 1;
- uint64 u64 = 2;
- string str = 3;
- bytes bz = 4;
- google.protobuf.Timestamp timestamp = 5;
- google.protobuf.Duration duration = 6;
- int32 i32 = 7;
- int64 i64 = 10;
- bool a_bool = 15;
- Enum an_enum = 16;
- AMessage a_message = 17;
- cosmos.base.v1beta1.Coin a_coin = 18;
- string an_address = 19 [(cosmos_proto.scalar) = "cosmos.AddressString"];
- cosmos.base.query.v1beta1.PageRequest page = 20;
- repeated bool bools = 21;
- repeated uint32 uints = 22;
- repeated string strings = 23;
- repeated Enum enums = 24;
- repeated google.protobuf.Duration durations = 25;
- repeated AMessage some_messages = 26;
-}
-
-enum Enum {
- ENUM_UNSPECIFIED = 0;
- ENUM_ONE = 1;
- ENUM_TWO = 2;
- ENUM_FIVE = 5;
- ENUM_NEG_THREE = -3;
-}
-
-message AMessage {
- string bar = 1;
- int32 baz = 2;
-}
-
-message EchoResponse {
- EchoRequest request = 1;
-}
\ No newline at end of file
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/core/internal/testpb/test.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/core/internal/testpb/test.proto
deleted file mode 100644
index fe6535a2d4..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/core/internal/testpb/test.proto
+++ /dev/null
@@ -1,36 +0,0 @@
-syntax = "proto3";
-
-package testpb;
-
-import "cosmos/app/v1alpha1/module.proto";
-
-message TestRuntimeModule {
- option (cosmos.app.v1alpha1.module) = {
- go_import: "cosmossdk.io/core/internal/testpb"
- };
-}
-
-message TestModuleA {
- option (cosmos.app.v1alpha1.module) = {
- go_import: "cosmossdk.io/core/internal/testpb"
- };
-}
-
-message TestModuleB {
- option (cosmos.app.v1alpha1.module) = {
- go_import: "cosmossdk.io/core/internal/testpb"
- };
-}
-
-message TestUnregisteredModule {
- option (cosmos.app.v1alpha1.module) = {
- go_import: "cosmossdk.io/core/internal/testpb"
- };
-}
-
-message TestNoModuleOptionModule {}
-
-message TestNoGoImportModule {
- option (cosmos.app.v1alpha1.module) = {
- };
-}
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/cosmos_proto/cosmos.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/cosmos_proto/cosmos.proto
deleted file mode 100644
index 0a073fc3dd..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/cosmos_proto/cosmos.proto
+++ /dev/null
@@ -1,108 +0,0 @@
-syntax = "proto3";
-package cosmos_proto;
-
-import "google/protobuf/descriptor.proto";
-
-option go_package = "github.com/cosmos/cosmos-proto;cosmos_proto";
-
-extend google.protobuf.MessageOptions {
-
- // implements_interface is used to indicate the type name of the interface
- // that a message implements so that it can be used in google.protobuf.Any
- // fields that accept that interface. A message can implement multiple
- // interfaces. Interfaces should be declared using a declare_interface
- // file option.
- repeated string implements_interface = 93001;
-}
-
-extend google.protobuf.FieldOptions {
-
- // accepts_interface is used to annotate that a google.protobuf.Any
- // field accepts messages that implement the specified interface.
- // Interfaces should be declared using a declare_interface file option.
- string accepts_interface = 93001;
-
- // scalar is used to indicate that this field follows the formatting defined
- // by the named scalar which should be declared with declare_scalar. Code
- // generators may choose to use this information to map this field to a
- // language-specific type representing the scalar.
- string scalar = 93002;
-}
-
-extend google.protobuf.FileOptions {
-
- // declare_interface declares an interface type to be used with
- // accepts_interface and implements_interface. Interface names are
- // expected to follow the following convention such that their declaration
- // can be discovered by tools: for a given interface type a.b.C, it is
- // expected that the declaration will be found in a protobuf file named
- // a/b/interfaces.proto in the file descriptor set.
- repeated InterfaceDescriptor declare_interface = 793021;
-
- // declare_scalar declares a scalar type to be used with
- // the scalar field option. Scalar names are
- // expected to follow the following convention such that their declaration
- // can be discovered by tools: for a given scalar type a.b.C, it is
- // expected that the declaration will be found in a protobuf file named
- // a/b/scalars.proto in the file descriptor set.
- repeated ScalarDescriptor declare_scalar = 793022;
-}
-
-// InterfaceDescriptor describes an interface type to be used with
-// accepts_interface and implements_interface and declared by declare_interface.
-message InterfaceDescriptor {
-
- // name is the name of the interface. It should be a short-name (without
- // a period) such that the fully qualified name of the interface will be
- // package.name, ex. for the package a.b and interface named C, the
- // fully-qualified name will be a.b.C.
- string name = 1;
-
- // description is a human-readable description of the interface and its
- // purpose.
- string description = 2;
-}
-
-// ScalarDescriptor describes an scalar type to be used with
-// the scalar field option and declared by declare_scalar.
-// Scalars extend simple protobuf built-in types with additional
-// syntax and semantics, for instance to represent big integers.
-// Scalars should ideally define an encoding such that there is only one
-// valid syntactical representation for a given semantic meaning,
-// i.e. the encoding should be deterministic.
-message ScalarDescriptor {
-
- // name is the name of the scalar. It should be a short-name (without
- // a period) such that the fully qualified name of the scalar will be
- // package.name, ex. for the package a.b and scalar named C, the
- // fully-qualified name will be a.b.C.
- string name = 1;
-
- // description is a human-readable description of the scalar and its
- // encoding format. For instance a big integer or decimal scalar should
- // specify precisely the expected encoding format.
- string description = 2;
-
- // field_type is the type of field with which this scalar can be used.
- // Scalars can be used with one and only one type of field so that
- // encoding standards and simple and clear. Currently only string and
- // bytes fields are supported for scalars.
- repeated ScalarType field_type = 3;
-
- // legacy_amino_encoding is an optional string to describe the encoding
- // format used by Amino. The field type is chosen to be a string so that
- // the value can either be:
- // - a machine-readable string, such as "base64", "bech32" or "utf8",
- // - or a human-readable string, for instance a short specification of how
- // a big integer would be encoded using Amino.
- //
- // If left empty, then the Amino encoding is expected to be the same as the
- // Protobuf one.
- string legacy_amino_encoding = 4;
-}
-
-enum ScalarType {
- SCALAR_TYPE_UNSPECIFIED = 0;
- SCALAR_TYPE_STRING = 1;
- SCALAR_TYPE_BYTES = 2;
-}
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank.proto
deleted file mode 100644
index e6b4e7f262..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank.proto
+++ /dev/null
@@ -1,42 +0,0 @@
-syntax = "proto3";
-
-package testpb;
-
-import "cosmos/orm/v1/orm.proto";
-
-// This is a simulated bank schema used for testing.
-
-message Balance {
- // clang-format off
- option (cosmos.orm.v1.table) = {
- id: 1;
- primary_key: {
- fields:
- "address,denom"
- }
- index: {
- id:
- 1 fields: "denom"
- }
- };
-// clang-format on
-
-string address = 1;
-string denom = 2;
-uint64 amount = 3;
-}
-
-message Supply {
- // clang-format off
- option (cosmos.orm.v1.table) = {
- id: 2;
- primary_key: {
- fields:
- "denom"
- }
- };
-// clang-format on
-
-string denom = 1;
-uint64 amount = 2;
-}
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank_query.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank_query.proto
deleted file mode 100644
index a5beea2240..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/bank_query.proto
+++ /dev/null
@@ -1,150 +0,0 @@
-// Code generated by protoc-gen-go-cosmos-orm-proto. DO NOT EDIT.
-syntax = "proto3";
-package testpb;
-
-import "cosmos/base/query/v1beta1/pagination.proto";
-import "testpb/bank.proto";
-
-// BankQuery queries the state of the tables specified by testpb/bank.proto.
-service BankQuery {
- // Get queries the Balance table by its primary key.
- rpc GetBalance (GetBalanceRequest) returns (GetBalanceResponse) {}
- // ListBalance queries the Balance table using prefix and range queries against defined indexes.
- rpc ListBalance (ListBalanceRequest) returns (ListBalanceResponse) {}
- // Get queries the Supply table by its primary key.
- rpc GetSupply (GetSupplyRequest) returns (GetSupplyResponse) {}
- // ListSupply queries the Supply table using prefix and range queries against defined indexes.
- rpc ListSupply (ListSupplyRequest) returns (ListSupplyResponse) {}
-}
-
-// GetBalanceRequest is the BankQuery/GetBalanceRequest request type.
-message GetBalanceRequest {
- // address specifies the value of the address field in the primary key.
- string address = 1;
- // denom specifies the value of the denom field in the primary key.
- string denom = 2;
-}
-
-// GetBalanceResponse is the BankQuery/GetBalanceResponse response type.
-message GetBalanceResponse {
- // value is the response value.
- Balance value = 1;
-}
-
-// ListBalanceRequest is the BankQuery/ListBalanceRequest request type.
-message ListBalanceRequest {
- // IndexKey specifies the value of an index key to use in prefix and range queries.
- message IndexKey {
- // key specifies the index key value.
- oneof key {
- // address_denom specifies the value of the AddressDenom index key to use in the query.
- AddressDenom address_denom = 1;
- // denom specifies the value of the Denom index key to use in the query.
- Denom denom = 2;
- }
-
- message AddressDenom {
- // address is the value of the address field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string address = 1;
- // denom is the value of the denom field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string denom = 2;
- }
-
- message Denom {
- // denom is the value of the denom field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string denom = 1;
- }
- }
-
- // query specifies the type of query - either a prefix or range query.
- oneof query {
- // prefix_query specifies the index key value to use for the prefix query.
- IndexKey prefix_query = 1;
- // range_query specifies the index key from/to values to use for the range query.
- RangeQuery range_query = 2;
- }
- // pagination specifies optional pagination parameters.
- cosmos.base.query.v1beta1.PageRequest pagination = 3;
-
- // RangeQuery specifies the from/to index keys for a range query.
- message RangeQuery {
- // from is the index key to use for the start of the range query.
- // To query from the start of an index, specify an index key for that index with empty values.
- IndexKey from = 1;
- // to is the index key to use for the end of the range query.
- // The index key type MUST be the same as the index key type used for from.
- // To query from to the end of an index it can be omitted.
- IndexKey to = 2;
- }
-}
-
-// ListBalanceResponse is the BankQuery/ListBalanceResponse response type.
-message ListBalanceResponse {
- // values are the results of the query.
- repeated Balance values = 1;
- // pagination is the pagination response.
- cosmos.base.query.v1beta1.PageResponse pagination = 2;
-}
-
-// GetSupplyRequest is the BankQuery/GetSupplyRequest request type.
-message GetSupplyRequest {
- // denom specifies the value of the denom field in the primary key.
- string denom = 1;
-}
-
-// GetSupplyResponse is the BankQuery/GetSupplyResponse response type.
-message GetSupplyResponse {
- // value is the response value.
- Supply value = 1;
-}
-
-// ListSupplyRequest is the BankQuery/ListSupplyRequest request type.
-message ListSupplyRequest {
- // IndexKey specifies the value of an index key to use in prefix and range queries.
- message IndexKey {
- // key specifies the index key value.
- oneof key {
- // denom specifies the value of the Denom index key to use in the query.
- Denom denom = 1;
- }
-
- message Denom {
- // denom is the value of the denom field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string denom = 1;
- }
- }
-
- // query specifies the type of query - either a prefix or range query.
- oneof query {
- // prefix_query specifies the index key value to use for the prefix query.
- IndexKey prefix_query = 1;
- // range_query specifies the index key from/to values to use for the range query.
- RangeQuery range_query = 2;
- }
- // pagination specifies optional pagination parameters.
- cosmos.base.query.v1beta1.PageRequest pagination = 3;
-
- // RangeQuery specifies the from/to index keys for a range query.
- message RangeQuery {
- // from is the index key to use for the start of the range query.
- // To query from the start of an index, specify an index key for that index with empty values.
- IndexKey from = 1;
- // to is the index key to use for the end of the range query.
- // The index key type MUST be the same as the index key type used for from.
- // To query from to the end of an index it can be omitted.
- IndexKey to = 2;
- }
-}
-
-// ListSupplyResponse is the BankQuery/ListSupplyResponse response type.
-message ListSupplyResponse {
- // values are the results of the query.
- repeated Supply values = 1;
- // pagination is the pagination response.
- cosmos.base.query.v1beta1.PageResponse pagination = 2;
-}
-
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema.proto
deleted file mode 100644
index 2a27f8f737..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema.proto
+++ /dev/null
@@ -1,130 +0,0 @@
-syntax = "proto3";
-
-package testpb;
-
-import "google/protobuf/timestamp.proto";
-import "google/protobuf/duration.proto";
-import "cosmos/orm/v1/orm.proto";
-
-message ExampleTable {
- // clang-format off
- option (cosmos.orm.v1.table) = {
- id: 1;
- primary_key: {
- fields:
- "u32,i64,str"
- }
- index: {
- id:
- 1;
- fields:
- "u64,str" unique: true
- }
- index: {
- id:
- 2;
- fields:
- "str,u32"
- }
- index: {
- id:
- 3;
- fields:
- "bz,str"
- }
- };
-// clang-format on
-
-// Valid key fields:
-uint32 u32 = 1;
-uint64 u64 = 2;
-string str = 3;
-bytes bz = 4;
-google.protobuf.Timestamp ts = 5;
-google.protobuf.Duration dur = 6;
-int32 i32 = 7;
-sint32 s32 = 8;
-sfixed32 sf32 = 9;
-int64 i64 = 10;
-sint64 s64 = 11;
-sfixed64 sf64 = 12;
-fixed32 f32 = 13;
-fixed64 f64 = 14;
-bool b = 15;
-Enum e = 16;
-
-// Invalid key fields:
-repeated uint32 repeated = 17;
-map map = 18;
-ExampleMessage msg = 19;
-oneof sum {
- uint32 oneof = 20;
-}
-
-message ExampleMessage {
- string foo = 1;
- int32 bar = 2;
-}
-}
-
-enum Enum {
- ENUM_UNSPECIFIED = 0;
- ENUM_ONE = 1;
- ENUM_TWO = 2;
- ENUM_FIVE = 5;
- ENUM_NEG_THREE = -3;
-}
-
-message ExampleAutoIncrementTable {
- option (cosmos.orm.v1.table) = {
- id: 3
- primary_key: {fields: "id" auto_increment: true}
- index: {id: 1 fields: "x" unique: true}
- };
-
- uint64 id = 1;
- string x = 2;
- int32 y = 3;
-}
-
-message ExampleSingleton {
- option (cosmos.orm.v1.singleton) = {
- id: 2
- };
- string foo = 1;
- int32 bar = 2;
-}
-
-message ExampleTimestamp {
- option (cosmos.orm.v1.table) = {
- id: 4
- primary_key: {fields: "id" auto_increment: true}
- index: {id: 1 fields: "ts"}
- };
-
- uint64 id = 1;
- string name = 2;
- google.protobuf.Timestamp ts = 3;
-}
-
-message SimpleExample {
- option (cosmos.orm.v1.table) = {
- id: 5
- primary_key: {fields: "name"}
- index: {id: 1, fields: "unique", unique: true}
- };
-
- string name = 1;
- string unique = 2;
- string not_unique = 3;
-}
-
-// ExampleAutoIncFieldName is a table for testing InsertReturning.
-message ExampleAutoIncFieldName {
- option (cosmos.orm.v1.table) = {
- id: 6
- primary_key: {fields: "foo" auto_increment: true}
- };
- uint64 foo = 1;
- uint64 bar = 2;
-}
\ No newline at end of file
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema_query.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema_query.proto
deleted file mode 100644
index 14f8667979..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/orm/internal/testpb/test_schema_query.proto
+++ /dev/null
@@ -1,442 +0,0 @@
-// Code generated by protoc-gen-go-cosmos-orm-proto. DO NOT EDIT.
-syntax = "proto3";
-package testpb;
-
-import "cosmos/base/query/v1beta1/pagination.proto";
-import "google/protobuf/timestamp.proto";
-import "testpb/test_schema.proto";
-
-// TestSchemaQuery queries the state of the tables specified by testpb/test_schema.proto.
-service TestSchemaQuery {
- // Get queries the ExampleTable table by its primary key.
- rpc GetExampleTable (GetExampleTableRequest) returns (GetExampleTableResponse) {}
- // GetExampleTableByU64Str queries the ExampleTable table by its U64Str index
- rpc GetExampleTableByU64Str (GetExampleTableByU64StrRequest) returns (GetExampleTableByU64StrResponse) {}
- // ListExampleTable queries the ExampleTable table using prefix and range queries against defined indexes.
- rpc ListExampleTable (ListExampleTableRequest) returns (ListExampleTableResponse) {}
- // Get queries the ExampleAutoIncrementTable table by its primary key.
- rpc GetExampleAutoIncrementTable (GetExampleAutoIncrementTableRequest) returns (GetExampleAutoIncrementTableResponse) {}
- // GetExampleAutoIncrementTableByX queries the ExampleAutoIncrementTable table by its X index
- rpc GetExampleAutoIncrementTableByX (GetExampleAutoIncrementTableByXRequest) returns (GetExampleAutoIncrementTableByXResponse) {}
- // ListExampleAutoIncrementTable queries the ExampleAutoIncrementTable table using prefix and range queries against defined indexes.
- rpc ListExampleAutoIncrementTable (ListExampleAutoIncrementTableRequest) returns (ListExampleAutoIncrementTableResponse) {}
- // GetExampleSingleton queries the ExampleSingleton singleton.
- rpc GetExampleSingleton (GetExampleSingletonRequest) returns (GetExampleSingletonResponse) {}
- // Get queries the ExampleTimestamp table by its primary key.
- rpc GetExampleTimestamp (GetExampleTimestampRequest) returns (GetExampleTimestampResponse) {}
- // ListExampleTimestamp queries the ExampleTimestamp table using prefix and range queries against defined indexes.
- rpc ListExampleTimestamp (ListExampleTimestampRequest) returns (ListExampleTimestampResponse) {}
- // Get queries the SimpleExample table by its primary key.
- rpc GetSimpleExample (GetSimpleExampleRequest) returns (GetSimpleExampleResponse) {}
- // GetSimpleExampleByUnique queries the SimpleExample table by its Unique index
- rpc GetSimpleExampleByUnique (GetSimpleExampleByUniqueRequest) returns (GetSimpleExampleByUniqueResponse) {}
- // ListSimpleExample queries the SimpleExample table using prefix and range queries against defined indexes.
- rpc ListSimpleExample (ListSimpleExampleRequest) returns (ListSimpleExampleResponse) {}
- // Get queries the ExampleAutoIncFieldName table by its primary key.
- rpc GetExampleAutoIncFieldName (GetExampleAutoIncFieldNameRequest) returns (GetExampleAutoIncFieldNameResponse) {}
- // ListExampleAutoIncFieldName queries the ExampleAutoIncFieldName table using prefix and range queries against defined indexes.
- rpc ListExampleAutoIncFieldName (ListExampleAutoIncFieldNameRequest) returns (ListExampleAutoIncFieldNameResponse) {}
-}
-
-// GetExampleTableRequest is the TestSchemaQuery/GetExampleTableRequest request type.
-message GetExampleTableRequest {
- // u32 specifies the value of the u32 field in the primary key.
- uint32 u32 = 1;
- // i64 specifies the value of the i64 field in the primary key.
- int64 i64 = 2;
- // str specifies the value of the str field in the primary key.
- string str = 3;
-}
-
-// GetExampleTableResponse is the TestSchemaQuery/GetExampleTableResponse response type.
-message GetExampleTableResponse {
- // value is the response value.
- ExampleTable value = 1;
-}
-
-// GetExampleTableByU64StrRequest is the TestSchemaQuery/GetExampleTableByU64StrRequest request type.
-message GetExampleTableByU64StrRequest {
- uint64 u64 = 1;
- string str = 2;
-}
-
-// GetExampleTableByU64StrResponse is the TestSchemaQuery/GetExampleTableByU64StrResponse response type.
-message GetExampleTableByU64StrResponse {
- ExampleTable value = 1;
-}
-
-// ListExampleTableRequest is the TestSchemaQuery/ListExampleTableRequest request type.
-message ListExampleTableRequest {
- // IndexKey specifies the value of an index key to use in prefix and range queries.
- message IndexKey {
- // key specifies the index key value.
- oneof key {
- // u_32_i_64_str specifies the value of the U32I64Str index key to use in the query.
- U32I64Str u_32_i_64_str = 1;
- // u_64_str specifies the value of the U64Str index key to use in the query.
- U64Str u_64_str = 2;
- // str_u_32 specifies the value of the StrU32 index key to use in the query.
- StrU32 str_u_32 = 3;
- // bz_str specifies the value of the BzStr index key to use in the query.
- BzStr bz_str = 4;
- }
-
- message U32I64Str {
- // u32 is the value of the u32 field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional uint32 u32 = 1;
- // i64 is the value of the i64 field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional int64 i64 = 2;
- // str is the value of the str field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string str = 3;
- }
-
- message U64Str {
- // u64 is the value of the u64 field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional uint64 u64 = 1;
- // str is the value of the str field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string str = 2;
- }
-
- message StrU32 {
- // str is the value of the str field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string str = 1;
- // u32 is the value of the u32 field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional uint32 u32 = 2;
- }
-
- message BzStr {
- // bz is the value of the bz field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional bytes bz = 1;
- // str is the value of the str field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string str = 2;
- }
- }
-
- // query specifies the type of query - either a prefix or range query.
- oneof query {
- // prefix_query specifies the index key value to use for the prefix query.
- IndexKey prefix_query = 1;
- // range_query specifies the index key from/to values to use for the range query.
- RangeQuery range_query = 2;
- }
- // pagination specifies optional pagination parameters.
- cosmos.base.query.v1beta1.PageRequest pagination = 3;
-
- // RangeQuery specifies the from/to index keys for a range query.
- message RangeQuery {
- // from is the index key to use for the start of the range query.
- // To query from the start of an index, specify an index key for that index with empty values.
- IndexKey from = 1;
- // to is the index key to use for the end of the range query.
- // The index key type MUST be the same as the index key type used for from.
- // To query from to the end of an index it can be omitted.
- IndexKey to = 2;
- }
-}
-
-// ListExampleTableResponse is the TestSchemaQuery/ListExampleTableResponse response type.
-message ListExampleTableResponse {
- // values are the results of the query.
- repeated ExampleTable values = 1;
- // pagination is the pagination response.
- cosmos.base.query.v1beta1.PageResponse pagination = 2;
-}
-
-// GetExampleAutoIncrementTableRequest is the TestSchemaQuery/GetExampleAutoIncrementTableRequest request type.
-message GetExampleAutoIncrementTableRequest {
- // id specifies the value of the id field in the primary key.
- uint64 id = 1;
-}
-
-// GetExampleAutoIncrementTableResponse is the TestSchemaQuery/GetExampleAutoIncrementTableResponse response type.
-message GetExampleAutoIncrementTableResponse {
- // value is the response value.
- ExampleAutoIncrementTable value = 1;
-}
-
-// GetExampleAutoIncrementTableByXRequest is the TestSchemaQuery/GetExampleAutoIncrementTableByXRequest request type.
-message GetExampleAutoIncrementTableByXRequest {
- string x = 1;
-}
-
-// GetExampleAutoIncrementTableByXResponse is the TestSchemaQuery/GetExampleAutoIncrementTableByXResponse response type.
-message GetExampleAutoIncrementTableByXResponse {
- ExampleAutoIncrementTable value = 1;
-}
-
-// ListExampleAutoIncrementTableRequest is the TestSchemaQuery/ListExampleAutoIncrementTableRequest request type.
-message ListExampleAutoIncrementTableRequest {
- // IndexKey specifies the value of an index key to use in prefix and range queries.
- message IndexKey {
- // key specifies the index key value.
- oneof key {
- // id specifies the value of the Id index key to use in the query.
- Id id = 1;
- // x specifies the value of the X index key to use in the query.
- X x = 2;
- }
-
- message Id {
- // id is the value of the id field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional uint64 id = 1;
- }
-
- message X {
- // x is the value of the x field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string x = 1;
- }
- }
-
- // query specifies the type of query - either a prefix or range query.
- oneof query {
- // prefix_query specifies the index key value to use for the prefix query.
- IndexKey prefix_query = 1;
- // range_query specifies the index key from/to values to use for the range query.
- RangeQuery range_query = 2;
- }
- // pagination specifies optional pagination parameters.
- cosmos.base.query.v1beta1.PageRequest pagination = 3;
-
- // RangeQuery specifies the from/to index keys for a range query.
- message RangeQuery {
- // from is the index key to use for the start of the range query.
- // To query from the start of an index, specify an index key for that index with empty values.
- IndexKey from = 1;
- // to is the index key to use for the end of the range query.
- // The index key type MUST be the same as the index key type used for from.
- // To query from to the end of an index it can be omitted.
- IndexKey to = 2;
- }
-}
-
-// ListExampleAutoIncrementTableResponse is the TestSchemaQuery/ListExampleAutoIncrementTableResponse response type.
-message ListExampleAutoIncrementTableResponse {
- // values are the results of the query.
- repeated ExampleAutoIncrementTable values = 1;
- // pagination is the pagination response.
- cosmos.base.query.v1beta1.PageResponse pagination = 2;
-}
-
-// GetExampleSingletonRequest is the TestSchemaQuery/GetExampleSingletonRequest request type.
-message GetExampleSingletonRequest {
-}
-
-// GetExampleSingletonResponse is the TestSchemaQuery/GetExampleSingletonResponse request type.
-message GetExampleSingletonResponse {
- ExampleSingleton value = 1;
-}
-
-// GetExampleTimestampRequest is the TestSchemaQuery/GetExampleTimestampRequest request type.
-message GetExampleTimestampRequest {
- // id specifies the value of the id field in the primary key.
- uint64 id = 1;
-}
-
-// GetExampleTimestampResponse is the TestSchemaQuery/GetExampleTimestampResponse response type.
-message GetExampleTimestampResponse {
- // value is the response value.
- ExampleTimestamp value = 1;
-}
-
-// ListExampleTimestampRequest is the TestSchemaQuery/ListExampleTimestampRequest request type.
-message ListExampleTimestampRequest {
- // IndexKey specifies the value of an index key to use in prefix and range queries.
- message IndexKey {
- // key specifies the index key value.
- oneof key {
- // id specifies the value of the Id index key to use in the query.
- Id id = 1;
- // ts specifies the value of the Ts index key to use in the query.
- Ts ts = 2;
- }
-
- message Id {
- // id is the value of the id field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional uint64 id = 1;
- }
-
- message Ts {
- // ts is the value of the ts field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional google.protobuf.Timestamp ts = 1;
- }
- }
-
- // query specifies the type of query - either a prefix or range query.
- oneof query {
- // prefix_query specifies the index key value to use for the prefix query.
- IndexKey prefix_query = 1;
- // range_query specifies the index key from/to values to use for the range query.
- RangeQuery range_query = 2;
- }
- // pagination specifies optional pagination parameters.
- cosmos.base.query.v1beta1.PageRequest pagination = 3;
-
- // RangeQuery specifies the from/to index keys for a range query.
- message RangeQuery {
- // from is the index key to use for the start of the range query.
- // To query from the start of an index, specify an index key for that index with empty values.
- IndexKey from = 1;
- // to is the index key to use for the end of the range query.
- // The index key type MUST be the same as the index key type used for from.
- // To query from to the end of an index it can be omitted.
- IndexKey to = 2;
- }
-}
-
-// ListExampleTimestampResponse is the TestSchemaQuery/ListExampleTimestampResponse response type.
-message ListExampleTimestampResponse {
- // values are the results of the query.
- repeated ExampleTimestamp values = 1;
- // pagination is the pagination response.
- cosmos.base.query.v1beta1.PageResponse pagination = 2;
-}
-
-// GetSimpleExampleRequest is the TestSchemaQuery/GetSimpleExampleRequest request type.
-message GetSimpleExampleRequest {
- // name specifies the value of the name field in the primary key.
- string name = 1;
-}
-
-// GetSimpleExampleResponse is the TestSchemaQuery/GetSimpleExampleResponse response type.
-message GetSimpleExampleResponse {
- // value is the response value.
- SimpleExample value = 1;
-}
-
-// GetSimpleExampleByUniqueRequest is the TestSchemaQuery/GetSimpleExampleByUniqueRequest request type.
-message GetSimpleExampleByUniqueRequest {
- string unique = 1;
-}
-
-// GetSimpleExampleByUniqueResponse is the TestSchemaQuery/GetSimpleExampleByUniqueResponse response type.
-message GetSimpleExampleByUniqueResponse {
- SimpleExample value = 1;
-}
-
-// ListSimpleExampleRequest is the TestSchemaQuery/ListSimpleExampleRequest request type.
-message ListSimpleExampleRequest {
- // IndexKey specifies the value of an index key to use in prefix and range queries.
- message IndexKey {
- // key specifies the index key value.
- oneof key {
- // name specifies the value of the Name index key to use in the query.
- Name name = 1;
- // unique specifies the value of the Unique index key to use in the query.
- Unique unique = 2;
- }
-
- message Name {
- // name is the value of the name field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string name = 1;
- }
-
- message Unique {
- // unique is the value of the unique field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional string unique = 1;
- }
- }
-
- // query specifies the type of query - either a prefix or range query.
- oneof query {
- // prefix_query specifies the index key value to use for the prefix query.
- IndexKey prefix_query = 1;
- // range_query specifies the index key from/to values to use for the range query.
- RangeQuery range_query = 2;
- }
- // pagination specifies optional pagination parameters.
- cosmos.base.query.v1beta1.PageRequest pagination = 3;
-
- // RangeQuery specifies the from/to index keys for a range query.
- message RangeQuery {
- // from is the index key to use for the start of the range query.
- // To query from the start of an index, specify an index key for that index with empty values.
- IndexKey from = 1;
- // to is the index key to use for the end of the range query.
- // The index key type MUST be the same as the index key type used for from.
- // To query from to the end of an index it can be omitted.
- IndexKey to = 2;
- }
-}
-
-// ListSimpleExampleResponse is the TestSchemaQuery/ListSimpleExampleResponse response type.
-message ListSimpleExampleResponse {
- // values are the results of the query.
- repeated SimpleExample values = 1;
- // pagination is the pagination response.
- cosmos.base.query.v1beta1.PageResponse pagination = 2;
-}
-
-// GetExampleAutoIncFieldNameRequest is the TestSchemaQuery/GetExampleAutoIncFieldNameRequest request type.
-message GetExampleAutoIncFieldNameRequest {
- // foo specifies the value of the foo field in the primary key.
- uint64 foo = 1;
-}
-
-// GetExampleAutoIncFieldNameResponse is the TestSchemaQuery/GetExampleAutoIncFieldNameResponse response type.
-message GetExampleAutoIncFieldNameResponse {
- // value is the response value.
- ExampleAutoIncFieldName value = 1;
-}
-
-// ListExampleAutoIncFieldNameRequest is the TestSchemaQuery/ListExampleAutoIncFieldNameRequest request type.
-message ListExampleAutoIncFieldNameRequest {
- // IndexKey specifies the value of an index key to use in prefix and range queries.
- message IndexKey {
- // key specifies the index key value.
- oneof key {
- // foo specifies the value of the Foo index key to use in the query.
- Foo foo = 1;
- }
-
- message Foo {
- // foo is the value of the foo field in the index.
- // It can be omitted to query for all valid values of that field in this segment of the index.
- optional uint64 foo = 1;
- }
- }
-
- // query specifies the type of query - either a prefix or range query.
- oneof query {
- // prefix_query specifies the index key value to use for the prefix query.
- IndexKey prefix_query = 1;
- // range_query specifies the index key from/to values to use for the range query.
- RangeQuery range_query = 2;
- }
- // pagination specifies optional pagination parameters.
- cosmos.base.query.v1beta1.PageRequest pagination = 3;
-
- // RangeQuery specifies the from/to index keys for a range query.
- message RangeQuery {
- // from is the index key to use for the start of the range query.
- // To query from the start of an index, specify an index key for that index with empty values.
- IndexKey from = 1;
- // to is the index key to use for the end of the range query.
- // The index key type MUST be the same as the index key type used for from.
- // To query from to the end of an index it can be omitted.
- IndexKey to = 2;
- }
-}
-
-// ListExampleAutoIncFieldNameResponse is the TestSchemaQuery/ListExampleAutoIncFieldNameResponse response type.
-message ListExampleAutoIncFieldNameResponse {
- // values are the results of the query.
- repeated ExampleAutoIncFieldName values = 1;
- // pagination is the pagination response.
- cosmos.base.query.v1beta1.PageResponse pagination = 2;
-}
-
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/query.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/query.proto
deleted file mode 100644
index 3a60acaad1..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/query.proto
+++ /dev/null
@@ -1,39 +0,0 @@
-syntax = "proto3";
-package testdata;
-
-import "google/protobuf/any.proto";
-import "testdata.proto";
-
-option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata";
-
-// Query tests the protobuf Query service as defined in
-// https://github.com/cosmos/cosmos-sdk/issues/5921.
-service Query {
- rpc Echo(EchoRequest) returns (EchoResponse);
- rpc SayHello(SayHelloRequest) returns (SayHelloResponse);
- rpc TestAny(TestAnyRequest) returns (TestAnyResponse);
-}
-
-message EchoRequest {
- string message = 1;
-}
-
-message EchoResponse {
- string message = 1;
-}
-
-message SayHelloRequest {
- string name = 1;
-}
-
-message SayHelloResponse {
- string greeting = 1;
-}
-
-message TestAnyRequest {
- google.protobuf.Any any_animal = 1;
-}
-
-message TestAnyResponse {
- testdata.HasAnimal has_animal = 1;
-}
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/testdata.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/testdata.proto
deleted file mode 100644
index 22503ef61d..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/testdata.proto
+++ /dev/null
@@ -1,49 +0,0 @@
-syntax = "proto3";
-package testdata;
-
-import "gogoproto/gogo.proto";
-import "google/protobuf/any.proto";
-
-option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata";
-
-message Dog {
- string size = 1;
- string name = 2;
-}
-
-message Cat {
- string moniker = 1;
- int32 lives = 2;
-}
-
-message Bird {
- string species = 1;
- int32 color = 2;
-}
-
-message HasAnimal {
- google.protobuf.Any animal = 1;
- int64 x = 2;
-}
-
-message HasHasAnimal {
- google.protobuf.Any has_animal = 1;
-}
-
-message HasHasHasAnimal {
- google.protobuf.Any has_has_animal = 1;
-}
-
-// bad MultiSignature with extra fields
-message BadMultiSignature {
- option (gogoproto.goproto_unrecognized) = true;
- repeated bytes signatures = 1;
- bytes malicious_field = 5;
-}
-
-message TableModel {
- uint64 id = 1;
- string name = 2;
- uint64 number = 3;
- bytes metadata = 4;
-}
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/tx.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/tx.proto
deleted file mode 100644
index eaeb9580e5..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/tx.proto
+++ /dev/null
@@ -1,28 +0,0 @@
-syntax = "proto3";
-package testdata;
-
-import "gogoproto/gogo.proto";
-import "testdata.proto";
-
-option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata";
-
-// Msg tests the Protobuf message service as defined in
-// https://github.com/cosmos/cosmos-sdk/issues/7500.
-service Msg {
- rpc CreateDog(MsgCreateDog) returns (MsgCreateDogResponse);
-}
-
-message MsgCreateDog {
- testdata.Dog dog = 1;
-}
-
-message MsgCreateDogResponse {
- string name = 1;
-}
-
-// TestMsg is msg type for testing protobuf message using any, as defined in
-// https://github.com/cosmos/cosmos-sdk/issues/6213.
-message TestMsg {
- option (gogoproto.goproto_getters) = false;
- repeated string signers = 1;
-}
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/unknonwnproto.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/unknonwnproto.proto
deleted file mode 100644
index 7bf1ce6bba..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/testutil/testdata/unknonwnproto.proto
+++ /dev/null
@@ -1,308 +0,0 @@
-syntax = "proto3";
-package testdata;
-
-import "gogoproto/gogo.proto";
-import "google/protobuf/any.proto";
-import "cosmos/tx/v1beta1/tx.proto";
-
-option go_package = "github.com/cosmos/cosmos-sdk/testutil/testdata";
-
-message Customer1 {
- int32 id = 1;
- string name = 2;
- float subscription_fee = 3;
-
- string payment = 7;
-}
-
-message Customer2 {
- int32 id = 1;
- int32 industry = 2;
- string name = 3;
- float fewer = 4;
-
- int64 reserved = 1047;
-
- enum City {
- Laos = 0;
- LosAngeles = 1;
- PaloAlto = 2;
- Moscow = 3;
- Nairobi = 4;
- }
-
- City city = 6;
-
- google.protobuf.Any miscellaneous = 10;
-}
-
-message Nested4A {
- int32 id = 1;
- string name = 2;
-}
-
-message Nested3A {
- int32 id = 1;
- string name = 2;
- repeated Nested4A a4 = 4;
- map index = 5;
-}
-
-message Nested2A {
- int32 id = 1;
- string name = 2;
- Nested3A nested = 3;
-}
-
-message Nested1A {
- int32 id = 1;
- Nested2A nested = 2;
-}
-
-message Nested4B {
- int32 id = 1;
- int32 age = 2;
- string name = 3;
-}
-
-message Nested3B {
- int32 id = 1;
- int32 age = 2;
- string name = 3;
- repeated Nested4B b4 = 4;
-}
-
-message Nested2B {
- int32 id = 1;
- double fee = 2;
- Nested3B nested = 3;
- string route = 4;
-}
-
-message Nested1B {
- int32 id = 1;
- Nested2B nested = 2;
- int32 age = 3;
-}
-
-message Customer3 {
- int32 id = 1;
- string name = 2;
- float sf = 3;
- float surcharge = 4;
- string destination = 5;
-
- oneof payment {
- string credit_card_no = 7;
- string cheque_no = 8;
- }
-
- Customer1 original = 9;
-}
-
-message TestVersion1 {
- int64 x = 1;
- TestVersion1 a = 2;
- TestVersion1 b = 3; // [(gogoproto.nullable) = false] generates invalid recursive structs;
- repeated TestVersion1 c = 4;
- repeated TestVersion1 d = 5 [(gogoproto.nullable) = false];
- oneof sum {
- int32 e = 6;
- TestVersion1 f = 7;
- }
- google.protobuf.Any g = 8;
- repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"];
- // google.protobuf.Timestamp i = 10;
- // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
- Customer1 k = 12 [(gogoproto.embed) = true];
-}
-message TestVersion2 {
- int64 x = 1;
- TestVersion2 a = 2;
- TestVersion2 b = 3; // [(gogoproto.nullable) = false];
- repeated TestVersion2 c = 4;
- repeated TestVersion2 d = 5; // [(gogoproto.nullable) = false];
- oneof sum {
- int32 e = 6;
- TestVersion2 f = 7;
- }
- google.protobuf.Any g = 8;
- repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"];
- // google.protobuf.Timestamp i = 10;
- // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
- Customer1 k = 12 [(gogoproto.embed) = true];
- uint64 new_field = 25;
-}
-message TestVersion3 {
- int64 x = 1;
- TestVersion3 a = 2;
- TestVersion3 b = 3; // [(gogoproto.nullable) = false];
- repeated TestVersion3 c = 4;
- repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false];
- oneof sum {
- int32 e = 6;
- TestVersion3 f = 7;
- }
- google.protobuf.Any g = 8;
- repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"];
- // google.protobuf.Timestamp i = 10;
- // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
- Customer1 k = 12 [(gogoproto.embed) = true];
- string non_critical_field = 1031;
-}
-
-message TestVersion3LoneOneOfValue {
- int64 x = 1;
- TestVersion3 a = 2;
- TestVersion3 b = 3; // [(gogoproto.nullable) = false];
- repeated TestVersion3 c = 4;
- repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false];
- oneof sum {
- int32 e = 6;
- }
- google.protobuf.Any g = 8;
- repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"];
- // google.protobuf.Timestamp i = 10;
- // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
- Customer1 k = 12 [(gogoproto.embed) = true];
- string non_critical_field = 1031;
-}
-
-message TestVersion3LoneNesting {
- int64 x = 1;
- TestVersion3 a = 2;
- TestVersion3 b = 3; // [(gogoproto.nullable) = false];
- repeated TestVersion3 c = 4;
- repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false];
- oneof sum {
- TestVersion3LoneNesting f = 7;
- }
- google.protobuf.Any g = 8;
- repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"];
- // google.protobuf.Timestamp i = 10;
- // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
- Customer1 k = 12 [(gogoproto.embed) = true];
- string non_critical_field = 1031;
-
- message Inner1 {
- int64 id = 1;
- string name = 2;
- message InnerInner {
- string id = 1;
- string city = 2;
- }
- InnerInner inner = 3;
- }
-
- Inner1 inner1 = 14;
-
- message Inner2 {
- string id = 1;
- string country = 2;
- message InnerInner {
- string id = 1;
- string city = 2;
- }
- InnerInner inner = 3;
- }
-
- Inner2 inner2 = 15;
-}
-
-message TestVersion4LoneNesting {
- int64 x = 1;
- TestVersion3 a = 2;
- TestVersion3 b = 3; // [(gogoproto.nullable) = false];
- repeated TestVersion3 c = 4;
- repeated TestVersion3 d = 5; // [(gogoproto.nullable) = false];
- oneof sum {
- TestVersion3LoneNesting f = 7;
- }
- google.protobuf.Any g = 8;
- repeated TestVersion1 h = 9; //[(gogoproto.castrepeated) = "TestVersion1"];
- // google.protobuf.Timestamp i = 10;
- // google.protobuf.Timestamp j = 11; // [(gogoproto.stdtime) = true];
- Customer1 k = 12 [(gogoproto.embed) = true];
- string non_critical_field = 1031;
-
- message Inner1 {
- int64 id = 1;
- string name = 2;
- message InnerInner {
- int64 id = 1;
- string city = 2;
- }
- InnerInner inner = 3;
- }
-
- Inner1 inner1 = 14;
-
- message Inner2 {
- string id = 1;
- string country = 2;
- message InnerInner {
- string id = 1;
- int64 value = 2;
- }
- InnerInner inner = 3;
- }
-
- Inner2 inner2 = 15;
-}
-
-message TestVersionFD1 {
- int64 x = 1;
- TestVersion1 a = 2;
- oneof sum {
- int32 e = 6;
- TestVersion1 f = 7;
- }
- google.protobuf.Any g = 8;
- repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"];
-}
-
-message TestVersionFD1WithExtraAny {
- int64 x = 1;
- TestVersion1 a = 2;
- oneof sum {
- int32 e = 6;
- TestVersion1 f = 7;
- }
- AnyWithExtra g = 8;
- repeated TestVersion1 h = 9; // [(gogoproto.castrepeated) = "TestVersion1"];
-}
-
-message AnyWithExtra {
- google.protobuf.Any a = 1 [(gogoproto.embed) = true];
- int64 b = 3;
- int64 c = 4;
-}
-
-message TestUpdatedTxRaw {
- bytes body_bytes = 1;
- bytes auth_info_bytes = 2;
- repeated bytes signatures = 3;
- bytes new_field_5 = 5;
- bytes new_field_1024 = 1024;
-}
-
-message TestUpdatedTxBody {
- repeated google.protobuf.Any messages = 1;
- string memo = 2;
- int64 timeout_height = 3;
- uint64 some_new_field = 4;
- string some_new_field_non_critical_field = 1050;
- repeated google.protobuf.Any extension_options = 1023;
- repeated google.protobuf.Any non_critical_extension_options = 2047;
-}
-
-message TestUpdatedAuthInfo {
- repeated cosmos.tx.v1beta1.SignerInfo signer_infos = 1;
- cosmos.tx.v1beta1.Fee fee = 2;
- bytes new_field_3 = 3;
- bytes new_field_1024 = 1024;
-}
-
-message TestRepeatedUints {
- repeated uint64 nums = 1;
-}
diff --git a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/tx/textual/internal/testpb/1.proto b/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/tx/textual/internal/testpb/1.proto
deleted file mode 100644
index 6bf8012e66..0000000000
--- a/ecosystem/lava-sdk/proto/cosmos/cosmos-sdk/tx/textual/internal/testpb/1.proto
+++ /dev/null
@@ -1,41 +0,0 @@
-syntax = "proto3";
-
-option go_package = "cosmossdk.io/tx/textual/internal/testpb";
-
-import "google/protobuf/descriptor.proto";
-import "google/protobuf/duration.proto";
-import "google/protobuf/timestamp.proto";
-import "cosmos_proto/cosmos.proto";
-import "cosmos/base/v1beta1/coin.proto";
-
-enum Enumeration {
- One = 0;
- Two = 1;
-}
-
-// A is used for testing value renderers.
-message A {
- // Fields that are parseable by SIGN_MODE_TEXTUAL.
- uint32 UINT32 = 1;
- uint64 UINT64 = 2;
- int32 INT32 = 3;
- int64 INT64 = 4;
- string SDKINT = 5 [(cosmos_proto.scalar) = "cosmos.Int"];
- string SDKDEC = 6 [(cosmos_proto.scalar) = "cosmos.Dec"];
- cosmos.base.v1beta1.Coin COIN = 7;
- repeated cosmos.base.v1beta1.Coin COINS = 8;
- bytes BYTES = 9;
- google.protobuf.Timestamp TIMESTAMP = 10;
- google.protobuf.Duration DURATION = 11;
-
- // Fields that are not handled by SIGN_MODE_TEXTUAL.
- sint32 SINT32 = 101;
- sint64 SINT64 = 102;
- sfixed32 SFIXED32 = 105;
- fixed32 FIXED32 = 106;
- float FLOAT = 107;
- sfixed64 SFIXED64 = 108;
- fixed64 FIXED64 = 109;
- double DOUBLE = 110;
- map MAP = 111;
-}
diff --git a/ecosystem/lava-sdk/scripts/init_sdk.sh b/ecosystem/lava-sdk/scripts/init_sdk.sh
new file mode 100755
index 0000000000..e5d02c68f9
--- /dev/null
+++ b/ecosystem/lava-sdk/scripts/init_sdk.sh
@@ -0,0 +1,87 @@
+#!/bin/bash
+
+__lava_root_dir=$(realpath $( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )/../../..)
+__scripts_dir=$__lava_root_dir/scripts
+source $__scripts_dir/useful_commands.sh
+
+# Check for GOTPATH
+if [[ -z "$GOPATH" ]]; then
+ echo ">>> GOPATH is not set. Exiting..."
+ exit 1
+fi
+
+# Check for Python 3
+if ! command_exists python3; then
+ echo ">>> python3 is not installed. Exiting..."
+ exit 1
+fi
+
+# Install npm if needed
+if ! command_exists npm; then
+ # Try to install npm using apt
+ echo ">>> Installing npm using apt..."
+ sudo apt update
+ sudo apt install -y npm
+ if ! command_exists npm; then
+ echo ">>> Failed to install npm. Exiting..."
+ exit 1
+ fi
+else
+ echo ">>> npm is installed"
+fi
+
+# Install yarn if needed
+if ! command_exists yarn; then
+ # Try to install yarn using npm
+ echo ">>> Installing yarn using npm..."
+ npm install -g yarn
+ if ! command_exists yarn; then
+ echo ">>> Failed to install yarn. Exiting..."
+ exit 1
+ fi
+else
+ echo ">>> yarn is installed"
+fi
+
+echo ">>> Running yarn to install packages..."
+yarn
+if command_exists yarn; then
+ echo ">>> All packages have been successfully installed."
+fi
+
+# Run go mod tidy in lava root dir
+cd __lava_root_dir
+go mod tidy
+cd -
+
+# Install the protobuf compiler if needed
+if ! command_exists protoc; then
+ # Try to install protoc using apt
+ echo ">>> Installing protoc using apt..."
+ sudo apt update
+ sudo apt install -y protobuf-compiler
+ if ! command_exists protoc; then
+ echo ">>> Failed to install protobuf-compiler. Exiting..."
+ exit 1
+ fi
+else
+ echo ">>> protoc is installed"
+fi
+
+# Install the ts-protoc-gen plugin if needed
+if ! command_exists ts-protoc-gen; then
+ # Try to install ts-protoc-gen using npm
+ echo ">>> Installing ts-protoc-gen using npm..."
+ npm install ts-protoc-gen
+ if npm list ts-protoc-gen | grep -q "ts-protoc-gen"; then
+ echo ">>> ts-protoc-gen is installed"
+ else
+ echo ">>> ts-protoc-gen is not installed"
+ exit 1
+ fi
+else
+ echo ">>> ts-protoc-gen is installed"
+fi
+
+# Run the gRPC generation script
+./scripts/protoc_grpc_relay.sh
diff --git a/ecosystem/lava-sdk/scripts/prepare_protobufs.sh b/ecosystem/lava-sdk/scripts/prepare_protobufs.sh
index 23e6022d4b..10aa3c0ee7 100755
--- a/ecosystem/lava-sdk/scripts/prepare_protobufs.sh
+++ b/ecosystem/lava-sdk/scripts/prepare_protobufs.sh
@@ -8,6 +8,7 @@ function prepare() {
"github.com/gogo/googleapis v1.4.1 // indirect"
"github.com/cosmos/cosmos-sdk v0.47.3"
"github.com/cosmos/gogoproto v1.4.10"
+ "github.com/cosmos/cosmos-proto v1.0.0-beta.2"
)
missing_lines=()
@@ -64,12 +65,28 @@ function prepare() {
exit 1
fi
+ cosmosprotosdir="$GOPATH/pkg/mod/github.com/cosmos/cosmos-proto@v1.0.0-beta.2"
+
+ if [[ ! -d "$cosmosprotosdir" ]]; then
+ echo "Error: The cosmosprotosdir directory ('$cosmosprotosdir') does not exist under '$GOPATH/pkg/mod'." >&2
+ echo "make sure you ran 'go mod tidy' in the lava main repo"
+ exit 1
+ fi
+
+ sudo rm -rf ./proto
+
+ mkdir -p proto/cosmos/cosmos-sdk/google/api
+
sudo rm -rf ./proto/cosmos/cosmos-sdk/cosmos; cp -r $specific_dir/proto/cosmos ./proto/cosmos/cosmos-sdk
sudo rm -rf ./proto/cosmos/cosmos-sdk/amino; cp -r $specific_dir/proto/amino ./proto/cosmos/cosmos-sdk
sudo rm -rf ./proto/cosmos/cosmos-sdk/tendermint; cp -r $specific_dir/proto/tendermint ./proto/cosmos/cosmos-sdk
sudo rm -rf ./proto/cosmos/cosmos-sdk/gogoproto; cp -r $gogodir/gogoproto ./proto/cosmos/cosmos-sdk
sudo rm -rf ./proto/cosmos/cosmos-sdk/google; cp -r $gogodir/protobuf/google ./proto/cosmos/cosmos-sdk
+ sudo rm -rf ./proto/cosmos/cosmos-sdk/cosmos_proto; cp -r $cosmosprotosdir/proto/cosmos_proto ./proto/cosmos/cosmos-sdk
sudo cp -r $googledir/google/api ./proto/cosmos/cosmos-sdk/google
- sudo chown -R $(whoami):$(whoami) ./proto
+ cp -r ../../proto/lavanet ./proto
+
+ group=$(groups $(whoami) | cut -d' ' -f1)
+ sudo chown -R $(whoami):$group ./proto
}
\ No newline at end of file
diff --git a/ecosystem/lava-sdk/scripts/protoc_grpc_relay.sh b/ecosystem/lava-sdk/scripts/protoc_grpc_relay.sh
index ec5a4b7f11..d0ce6ba826 100755
--- a/ecosystem/lava-sdk/scripts/protoc_grpc_relay.sh
+++ b/ecosystem/lava-sdk/scripts/protoc_grpc_relay.sh
@@ -5,7 +5,7 @@ prepare
ROOT_PROTO_DIR="./proto/cosmos/cosmos-sdk"
COSMOS_PROTO_DIR="$ROOT_PROTO_DIR"
-THIRD_PARTY_PROTO_DIR="../../proto"
+LAVA_PROTO_DIR="../../proto"
OUT_DIR="./src/grpc_web_services"
mkdir -p "$OUT_DIR"
@@ -14,29 +14,29 @@ protoc --plugin="protoc-gen-ts=./node_modules/.bin/protoc-gen-ts" \
--js_out="import_style=commonjs,binary:$OUT_DIR" \
--ts_out="service=grpc-web:$OUT_DIR" \
--proto_path="$COSMOS_PROTO_DIR" \
- --proto_path="$THIRD_PARTY_PROTO_DIR" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/relay.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/badges.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/params.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/query.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/provider_payment_storage.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/unique_payment_storage_client_provider.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/subscription/subscription.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/projects/project.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/plans/policy.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/pairing/epoch_payments.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/spec/spec.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/spec/api_collection.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/epochstorage/stake_entry.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/epochstorage/endpoint.proto" \
- "$THIRD_PARTY_PROTO_DIR/lavanet/lava/conflict/conflict_data.proto" \
+ --proto_path="$LAVA_PROTO_DIR" \
+ "$LAVA_PROTO_DIR/lavanet/lava/pairing/relay.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/pairing/badges.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/pairing/params.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/pairing/query.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/pairing/provider_payment_storage.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/pairing/unique_payment_storage_client_provider.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/subscription/subscription.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/projects/project.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/plans/policy.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/pairing/epoch_payments.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/spec/spec.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/spec/api_collection.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/epochstorage/stake_entry.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/epochstorage/endpoint.proto" \
+ "$LAVA_PROTO_DIR/lavanet/lava/conflict/conflict_data.proto" \
"$COSMOS_PROTO_DIR/gogoproto/gogo.proto" \
"$COSMOS_PROTO_DIR/google/protobuf/descriptor.proto" \
"$COSMOS_PROTO_DIR/google/protobuf/wrappers.proto" \
"$COSMOS_PROTO_DIR/google/api/annotations.proto" \
"$COSMOS_PROTO_DIR/google/api/http.proto" \
"$COSMOS_PROTO_DIR/cosmos/base/query/v1beta1/pagination.proto" \
- "$COSMOS_PROTO_DIR/cosmos/base/v1beta1/coin.proto" \
+ "$COSMOS_PROTO_DIR/cosmos/base/v1beta1/coin.proto" \
"$COSMOS_PROTO_DIR/cosmos_proto/cosmos.proto" \
"$COSMOS_PROTO_DIR/amino/amino.proto" \
@@ -48,4 +48,5 @@ protoc --plugin="protoc-gen-ts=./node_modules/.bin/protoc-gen-ts" \
echo "running fix_grpc_web_camel_case.py"
python3 ./scripts/fix_grpc_web_camel_case.py
+mkdir -p ./bin/src
cp -r $OUT_DIR ./bin/src/.
diff --git a/ecosystem/lava-sdk/scripts/setup_sdk_with_local.sh b/ecosystem/lava-sdk/scripts/setup_sdk_with_local.sh
index b4d09ba3a8..c915fe1d7e 100755
--- a/ecosystem/lava-sdk/scripts/setup_sdk_with_local.sh
+++ b/ecosystem/lava-sdk/scripts/setup_sdk_with_local.sh
@@ -69,16 +69,19 @@ json_content+=' ]
# Write the JSON content to a file named "output.json"
echo "$json_content" > pairingList.json
-echo "Done."
+
+GEOLOCATION=2
cp examples/jsonRPC.ts examples/jsonRPC_test.ts
-cp examples/restAPI.ts examples/restAPI_test.ts
+cp examples/restAPI.ts examples/restAPI_test.tsZ
cp examples/tendermintRPC.ts examples/tendermintRPC_test.ts
-sed -i 's/geolocation: "2",/geolocation: "1",\n\n pairingListConfig: "pairingList.json",\n\n lavaChainId: "lava",\n\n logLevel: "debug",\n\n allowInsecureTransport: true,/g' examples/jsonRPC_test.ts
-sed -i 's/geolocation: "2",/geolocation: "1",\n\n pairingListConfig: "pairingList.json",\n\n lavaChainId: "lava",\n\n logLevel: "debug",\n\n allowInsecureTransport: true,/g' examples/restAPI_test.ts
-sed -i 's/geolocation: "2",/geolocation: "1",\n\n pairingListConfig: "pairingList.json",\n\n lavaChainId: "lava",\n\n logLevel: "debug",\n\n allowInsecureTransport: true,/g' examples/tendermintRPC_test.ts
+sed -i "s|geolocation:.*|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true,|g" examples/jsonRPC_test.ts
+sed -i "s|geolocation:.*|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true,|g" examples/restAPI_test.ts
+sed -i "s|geolocation:.*|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true,|g" examples/tendermintRPC_test.ts
+
+sed -i "s|privateKey:.*|privateKey:\n \"$privateKey\",|g" examples/jsonRPC_test.ts
+sed -i "s|privateKey:.*|privateKey:\n \"$privateKey\",|g" examples/restAPI_test.ts
+sed -i "s|privateKey:.*|privateKey:\n \"$privateKey\",|g" examples/tendermintRPC_test.ts
-sed -i 's/privateKey: "",/privateKey:\n "'"$privateKey"'",/g' examples/jsonRPC_test.ts
-sed -i 's/privateKey: "",/privateKey:\n "'"$privateKey"'",/g' examples/restAPI_test.ts
-sed -i 's/privateKey: "",/privateKey:\n "'"$privateKey"'",/g' examples/tendermintRPC_test.ts
+echo "Done."
diff --git a/ecosystem/lava-sdk/scripts/setup_sdk_with_local_badge.sh b/ecosystem/lava-sdk/scripts/setup_sdk_with_local_badge.sh
index 153366c7fc..74e34d447a 100755
--- a/ecosystem/lava-sdk/scripts/setup_sdk_with_local_badge.sh
+++ b/ecosystem/lava-sdk/scripts/setup_sdk_with_local_badge.sh
@@ -18,6 +18,8 @@ pairing=$(lavad q pairing providers LAV1)
addresses=$(echo "$pairing" | grep 'iPPORT:' | awk '{print $2}' | sort -u)
public_addresses=$(echo "$pairing" | grep 'address:' | awk '{print $3}')
+GEOLOCATION=2
+
# Associative array to store the JSON structure
declare -A json_data
index=0;
@@ -38,22 +40,22 @@ for rpc_address in $addresses; do
break
fi
echo "Adding Provider: $rpc_address, $public_address"
- json_data["1"]+="{
+ json_data["$GEOLOCATION"]+="{
\"rpcAddress\": \"$rpc_address\",
\"publicAddress\": \"$public_address\"
}"
if ((index < addresses_length-1)); then
- json_data["1"]+=","
+ json_data["$GEOLOCATION"]+=","
fi
done
((index++))
done
# Construct the final JSON content
-json_content='{
- "testnet": {
- "1": [
-'
+json_content="{
+ \"testnet\": {
+ \"$GEOLOCATION\": [
+"
for index in "${!json_data[@]}"; do
json_content+=" ${json_data["$index"]}"
@@ -71,21 +73,30 @@ echo "$json_content" > pairingList.json
# Run the badge server
signer=$(lavad keys show user1 -a)
-echo "signer address: $signer"
+echo "Signer address: $signer"
PROJECT_ID="sampleProjectId"
-GEOLOCATION="1"
+BADGE_PORT=8080
+BADGE_URL=http://localhost:$BADGE_PORT
cp examples/jsonRPC_badge.ts examples/jsonRPC_badge_test.ts
+cp examples/restAPI_badge.ts examples/restAPI_badge_test.ts
+cp examples/tendermintRPC_badge.ts examples/tendermintRPC_badge_test.ts
-sed -i 's/geolocation: "2",/geolocation: "1",\n\n pairingListConfig: "pairingList.json",\n\n lavaChainId: "lava",/g' examples/jsonRPC_badge_test.ts
+sed -i "s|geolocation:.*,|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true|g" examples/jsonRPC_badge_test.ts
+sed -i "s|geolocation:.*,|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true|g" examples/restAPI_badge_test.ts
+sed -i "s|geolocation:.*,|geolocation: \"$GEOLOCATION\",\n\n pairingListConfig: \"pairingList.json\",\n\n lavaChainId: \"lava\",\n\n logLevel: \"debug\",\n\n allowInsecureTransport: true|g" examples/tendermintRPC_badge_test.ts
-sed -i 's|badgeServerAddress:.*|badgeServerAddress: "http://localhost:8080",|g' examples/jsonRPC_badge_test.ts
-sed -i "s|projectId:.*|projectId: \"$PROJECT_ID\",|g" examples/jsonRPC_badge_test.ts
+sed -i "s|badgeServerAddress:.*|badgeServerAddress: \"$BADGE_URL\",|g" examples/jsonRPC_badge_test.ts
+sed -i "s|badgeServerAddress:.*|badgeServerAddress: \"$BADGE_URL\",|g" examples/restAPI_badge_test.ts
+sed -i "s|badgeServerAddress:.*|badgeServerAddress: \"$BADGE_URL\",|g" examples/tendermintRPC_badge_test.ts
+sed -i "s|projectId:.*|projectId: \"$PROJECT_ID\",|g" examples/jsonRPC_badge_test.ts
+sed -i "s|projectId:.*|projectId: \"$PROJECT_ID\",|g" examples/restAPI_badge_test.ts
+sed -i "s|projectId:.*|projectId: \"$PROJECT_ID\",|g" examples/tendermintRPC_badge_test.ts
-BADGE_USER_DATA="{\"$GEOLOCATION\":{\"$PROJECT_ID\":{\"project_public_key\":\"$signer\",\"private_key\":\"$privateKey\",\"epochs_max_cu\":2233333333}}}" lavad badgegenerator --grpc-url=127.0.0.1:9090 --log_level=debug --chain-id lava
+BADGE_DEFAULT_GEOLOCATION="$GEOLOCATION" BADGE_USER_DATA="{\"$GEOLOCATION\":{\"$PROJECT_ID\":{\"project_public_key\":\"$signer\",\"private_key\":\"$privateKey\",\"epochs_max_cu\":2233333333}}}" lavad badgegenerator --grpc-url=127.0.0.1:9090 --log_level=debug --chain-id lava --port $BADGE_PORT
-badgeResponse=$(curl -s -X POST -H "Content-Type: application/json" -d "{\"badge_address\": \"user1\", \"project_id\": \"$PROJECT_ID\"}" http://localhost:8080/lavanet.lava.pairing.BadgeGenerator/GenerateBadge)
+badgeResponse=$(curl -s -X POST -H "Content-Type: application/json" -d "{\"badge_address\": \"user1\", \"project_id\": \"$PROJECT_ID\"}" $BADGE_URL/lavanet.lava.pairing.BadgeGenerator/GenerateBadge)
if [[ -z "$badgeResponse" ]]; then
echo "Failed to generate the badge. Please check if the badge server is running and accessible."
diff --git a/ecosystem/lava-sdk/src/chainlib/base_chain_parser.ts b/ecosystem/lava-sdk/src/chainlib/base_chain_parser.ts
index b4ab57b659..d8336f77a0 100644
--- a/ecosystem/lava-sdk/src/chainlib/base_chain_parser.ts
+++ b/ecosystem/lava-sdk/src/chainlib/base_chain_parser.ts
@@ -30,6 +30,19 @@ export interface SendRelayOptions {
apiInterface?: string; // Optional: Specify only if both tendermintrpc and jsonrpc are both supported, and you want to access tendermintrpc
}
+export interface SingleRelayOptions {
+ method: string; // Required: The RPC method to be called
+ params: Array | Record; // Required: An array of parameters to be passed to the RPC method
+ id?: number | string; // Optional: The ID of the relay. If not specified, it is set to a random number.
+ metadata?: Metadata[]; // Optional: Headers to be sent with the request.
+}
+
+export interface SendRelaysBatchOptions {
+ relays: Array; // Required: The relays to send
+ chainId?: string; // Optional: The chain id to send the request to, if only one chain is initialized it will be chosen by default
+ apiInterface?: string; // Optional: Specify only if both tendermintrpc and jsonrpc are both supported, and you want to access tendermintrpc
+}
+
/**
* Options for sending Rest relay.
*/
@@ -70,7 +83,7 @@ export function CollectionKeyToString(key: CollectionKey): CollectionKeyString {
return `'{"addon":"${key.addon}","internalPath":"${key.internalPath}","connectionType":"${key.connectionType}"}'`;
}
-interface ApiContainer {
+export interface ApiContainer {
api: Api;
collectionKey: CollectionKey;
apiKey: ApiKey;
@@ -341,7 +354,7 @@ export abstract class BaseChainParser {
}
protected isRest(
- options: SendRelayOptions | SendRestRelayOptions
+ options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions
): options is SendRestRelayOptions {
return "connectionType" in options; // how to check which options were given
}
@@ -440,7 +453,7 @@ export abstract class BaseChainParser {
}
abstract parseMsg(
- options: SendRelayOptions | SendRestRelayOptions
+ options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions
): BaseChainMessageContainer;
public chainBlockStats(): ChainBlockStats {
diff --git a/ecosystem/lava-sdk/src/chainlib/chainproxy/consts.ts b/ecosystem/lava-sdk/src/chainlib/chainproxy/consts.ts
new file mode 100644
index 0000000000..5463a3586e
--- /dev/null
+++ b/ecosystem/lava-sdk/src/chainlib/chainproxy/consts.ts
@@ -0,0 +1 @@
+export const JsonRPCVersion = "2.0";
diff --git a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.test.ts b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.test.ts
index 8c78d57363..e793b4bd8e 100644
--- a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.test.ts
+++ b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.test.ts
@@ -1,5 +1,10 @@
import { encodeUtf8 } from "../../../util/common";
-import { JsonrpcMessage, parseJsonRPCMsg } from "./json_rpc_message";
+import {
+ JsonrpcBatchMessage,
+ JsonrpcMessage,
+ newBatchMessage,
+ parseJsonRPCMsg,
+} from "./json_rpc_message";
describe("JsonrpcMessage", () => {
it("should get Params", () => {
@@ -88,3 +93,43 @@ describe("ParseJsonRPCBatch", () => {
}
});
});
+
+describe("JsonRPCBatchMessageInit", () => {
+ it("should create valid batch message", () => {
+ const generateJsonRpcMsg = (params: any) => {
+ const jsonRpcMsg = new JsonrpcMessage();
+ jsonRpcMsg.initJsonrpcMessage("2.0", "6", "test", params);
+ return jsonRpcMsg;
+ };
+
+ const generateJsonRpcBatchMsg = (jsonRpcMessage: JsonrpcMessage) => {
+ const jsonRpcBatchMsg = new JsonrpcBatchMessage();
+ jsonRpcBatchMsg.batch = [jsonRpcMessage];
+ return jsonRpcBatchMsg;
+ };
+
+ const validJsonRpcMsg = [
+ generateJsonRpcMsg({ key: "value" }),
+ generateJsonRpcMsg([{ key: "value" }]),
+ generateJsonRpcMsg([]),
+ generateJsonRpcMsg(undefined),
+ generateJsonRpcMsg(null),
+ ];
+
+ const invalidJsonRpcMsgs = [
+ generateJsonRpcMsg("params"),
+ generateJsonRpcMsg(66),
+ ];
+
+ for (const jsonRpcMsg of validJsonRpcMsg) {
+ const batch = newBatchMessage([jsonRpcMsg]);
+ expect(batch).toBeInstanceOf(JsonrpcBatchMessage);
+ expect(batch).toStrictEqual(generateJsonRpcBatchMsg(jsonRpcMsg));
+ }
+
+ for (const jsonRpcMsg of invalidJsonRpcMsgs) {
+ const batch = newBatchMessage([jsonRpcMsg]);
+ expect(batch).toBeInstanceOf(Error);
+ }
+ });
+});
diff --git a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.ts b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.ts
index e8079f92b6..e9c7988c1e 100644
--- a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.ts
+++ b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/json_rpc_message.ts
@@ -54,9 +54,9 @@ export class JsonrpcMessage extends BaseMessage implements RPCInput {
updateLatestBlockInMessage(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
- latestBlock: number,
+ _latestBlock: number,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
- modifyContent: boolean
+ _modifyContent: boolean
): boolean {
return false;
}
@@ -124,3 +124,49 @@ function validateRawJsonrpcMessage(
return new Error("Missing params field from json");
}
}
+
+export class JsonrpcBatchMessage extends BaseMessage {
+ public batch: JsonrpcMessage[] = [];
+
+ initJsonrpcBatchMessage(batch: JsonrpcMessage[]) {
+ this.batch = batch;
+ }
+
+ updateLatestBlockInMessage(
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ _latestBlock: number,
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ _modifyContent: boolean
+ ): boolean {
+ return false;
+ }
+
+ getBatch() {
+ return this.batch;
+ }
+}
+
+export function newBatchMessage(
+ msgs: JsonrpcMessage[]
+): JsonrpcBatchMessage | Error {
+ const batch: JsonrpcMessage[] = [];
+ for (const msg of msgs) {
+ if (
+ !(msg.params instanceof Object) &&
+ !(msg.params instanceof Array) &&
+ msg.params !== null &&
+ msg.params !== undefined
+ ) {
+ return new Error(
+ `Message with id ${
+ msg.id
+ } has params of wrong type: ${typeof msg.params}`
+ );
+ }
+ batch.push(msg);
+ }
+
+ const jsonrpcBatchMessage = new JsonrpcBatchMessage();
+ jsonrpcBatchMessage.initJsonrpcBatchMessage(batch);
+ return jsonrpcBatchMessage;
+}
diff --git a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/rest_message.ts b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/rest_message.ts
index 3e755a6ab8..4f17875638 100644
--- a/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/rest_message.ts
+++ b/ecosystem/lava-sdk/src/chainlib/chainproxy/rpcInterfaceMessages/rest_message.ts
@@ -1,3 +1,4 @@
+import { DUMMY_URL } from "../../../common/common";
import { Parser } from "../../../parser/parser";
import { RPCInput } from "../../../parser/rpcInput";
import { BaseMessage } from "../common";
@@ -16,13 +17,9 @@ export class RestMessage extends BaseMessage implements RPCInput {
// GetParams will be deprecated after we remove old client
// Currently needed because of parser.RPCInput interface
getParams(): any {
- let parsedMethod: string;
- const idx = this.path.indexOf("?");
- if (idx === -1) {
- parsedMethod = this.path;
- } else {
- parsedMethod = this.path.substring(0, idx);
- }
+ const urlObj = new URL(this.path, DUMMY_URL);
+ const parsedMethod = urlObj.pathname;
+ const queryParams = urlObj.searchParams;
const objectSpec = this.specPath.split("/");
const objectPath = parsedMethod.split("/");
@@ -37,21 +34,11 @@ export class RestMessage extends BaseMessage implements RPCInput {
}
}
}
- if (idx > -1) {
- const queryParams = this.path.substring(idx);
- if (queryParams != undefined && queryParams.length > 0) {
- const queryParamsList = queryParams.split("&");
- for (const queryParamNameValue of queryParamsList) {
- const queryParamNameValueSplitted = queryParamNameValue.split("=");
- if (queryParamNameValueSplitted.length !== 2) {
- continue;
- }
- const queryParamName = queryParamNameValueSplitted[0];
- const queryParamValue = queryParamNameValueSplitted[1];
- parameters.set(queryParamName, queryParamValue);
- }
- }
- }
+
+ queryParams.forEach((value, key) => {
+ parameters[key] = value;
+ });
+
if (Object.keys(parameters).length === 0) {
return null;
}
diff --git a/ecosystem/lava-sdk/src/chainlib/common.test.ts b/ecosystem/lava-sdk/src/chainlib/common.test.ts
new file mode 100644
index 0000000000..66615b6838
--- /dev/null
+++ b/ecosystem/lava-sdk/src/chainlib/common.test.ts
@@ -0,0 +1,44 @@
+import { EARLIEST_BLOCK } from "../common/common";
+import { compareRequestedBlockInBatch } from "./common";
+
+describe("compareRequestedBlockInBatch", () => {
+ it("should return the correct result when first is EARLIEST_BLOCK", () => {
+ const result = compareRequestedBlockInBatch(EARLIEST_BLOCK, 20);
+ expect(result).toEqual([20, EARLIEST_BLOCK]);
+ });
+
+ it("should return the correct result when second is EARLIEST_BLOCK", () => {
+ const result = compareRequestedBlockInBatch(20, EARLIEST_BLOCK);
+ expect(result).toEqual([20, EARLIEST_BLOCK]);
+ });
+
+ it("should return the correct result when both first and second are EARLIEST_BLOCK", () => {
+ const result = compareRequestedBlockInBatch(EARLIEST_BLOCK, EARLIEST_BLOCK);
+ expect(result).toEqual([EARLIEST_BLOCK, EARLIEST_BLOCK]);
+ });
+
+ it("should return the correct result when both first and second are positive numbers", () => {
+ const result = compareRequestedBlockInBatch(10, 20);
+ expect(result).toEqual([20, 10]);
+ });
+
+ it("should return the correct result when both first and second are EARLIEST_BLOCK", () => {
+ const result = compareRequestedBlockInBatch(EARLIEST_BLOCK, EARLIEST_BLOCK);
+ expect(result).toEqual([EARLIEST_BLOCK, EARLIEST_BLOCK]);
+ });
+
+ it("should return the correct result when both first and second are negative numbers", () => {
+ const result = compareRequestedBlockInBatch(-10, -20);
+ expect(result).toEqual([-10, -20]);
+ });
+
+ it("should return the correct result when first is a positive number and second is a negative number", () => {
+ const result = compareRequestedBlockInBatch(10, -20);
+ expect(result).toEqual([-20, 10]);
+ });
+
+ it("should return the correct result when first is a negative number and second is a positive number", () => {
+ const result = compareRequestedBlockInBatch(-10, 20);
+ expect(result).toEqual([-10, 20]);
+ });
+});
diff --git a/ecosystem/lava-sdk/src/chainlib/common.ts b/ecosystem/lava-sdk/src/chainlib/common.ts
index 199cdec080..08fef31cf2 100644
--- a/ecosystem/lava-sdk/src/chainlib/common.ts
+++ b/ecosystem/lava-sdk/src/chainlib/common.ts
@@ -7,6 +7,7 @@ import {
APIInterfaceTendermintRPC,
} from "./base_chain_parser";
import { Logger } from "../logger/logger";
+import { EARLIEST_BLOCK } from "../common/common";
export function getChainParser(apiInterface: string) {
switch (apiInterface) {
@@ -23,3 +24,46 @@ export function getChainParser(apiInterface: string) {
);
}
}
+
+// split two requested blocks to the most advanced and most behind
+// the hierarchy is as follows:
+// NOT_APPLICABLE
+// LATEST_BLOCK
+// PENDING_BLOCK
+// SAFE
+// FINALIZED
+// numeric value (descending)
+// EARLIEST
+//
+// returns: [latest, earliest]
+export function compareRequestedBlockInBatch(
+ firstRequestedBlock: number,
+ second: number
+): [number, number] {
+ if (firstRequestedBlock === EARLIEST_BLOCK) {
+ return [second, firstRequestedBlock];
+ }
+ if (second === EARLIEST_BLOCK) {
+ return [firstRequestedBlock, second];
+ }
+
+ const biggerFirst = (x: number, y: number): [number, number] => [
+ Math.max(x, y),
+ Math.min(x, y),
+ ];
+
+ if (firstRequestedBlock < 0) {
+ if (second < 0) {
+ // both are negative
+ return biggerFirst(firstRequestedBlock, second);
+ }
+ // first is negative non earliest, second is positive
+ return [firstRequestedBlock, second];
+ }
+ if (second < 0) {
+ // second is negative non earliest, first is positive
+ return [second, firstRequestedBlock];
+ }
+ // both are positive
+ return biggerFirst(firstRequestedBlock, second);
+}
diff --git a/ecosystem/lava-sdk/src/chainlib/jsonrpc.test.ts b/ecosystem/lava-sdk/src/chainlib/jsonrpc.test.ts
new file mode 100644
index 0000000000..9c424d7c5a
--- /dev/null
+++ b/ecosystem/lava-sdk/src/chainlib/jsonrpc.test.ts
@@ -0,0 +1,143 @@
+import {
+ Api,
+ ApiCollection,
+ BlockParser,
+ CollectionData,
+ PARSER_FUNC,
+} from "../grpc_web_services/lavanet/lava/spec/api_collection_pb";
+import { Spec } from "../grpc_web_services/lavanet/lava/spec/spec_pb";
+import {
+ SendRelayOptions,
+ SendRelaysBatchOptions,
+ SendRestRelayOptions,
+} from "./base_chain_parser";
+import { BaseChainMessageContainer } from "./chain_message";
+import { JsonRPCVersion } from "./chainproxy/consts";
+import {
+ JsonrpcBatchMessage,
+ JsonrpcMessage,
+} from "./chainproxy/rpcInterfaceMessages/json_rpc_message";
+import { JsonRpcChainParser } from "./jsonrpc";
+
+describe("ParseJsonRPCMessage", () => {
+ let parser: JsonRpcChainParser;
+ let spec: Spec;
+
+ beforeAll(() => {
+ spec = new Spec();
+ const apiCollection = new ApiCollection();
+ const collectionData = new CollectionData();
+ const api1 = new Api();
+ const api2 = new Api();
+ const blockParser = new BlockParser();
+
+ blockParser.setParserFunc(PARSER_FUNC.DEFAULT);
+ blockParser.setParserArgList(["latest"]);
+
+ api1.setName("method1");
+ api1.setEnabled(true);
+ api1.setBlockParsing(blockParser);
+
+ api2.setName("method2");
+ api2.setEnabled(true);
+ api2.setBlockParsing(blockParser);
+
+ collectionData.setType("POST");
+ collectionData.setApiInterface("jsonrpc");
+
+ apiCollection.setApisList([api1, api2]);
+ apiCollection.setCollectionData(collectionData);
+ apiCollection.setEnabled(true);
+
+ spec.setApiCollectionsList([apiCollection]);
+ spec.setEnabled(true);
+ });
+
+ beforeEach(() => {
+ parser = new JsonRpcChainParser();
+ parser.init(spec);
+ });
+
+ it("parses a single relay message correctly", () => {
+ const id = 123;
+ const options: SendRelayOptions = {
+ method: "method1",
+ params: ["param1", "param2"],
+ id: id,
+ apiInterface: "jsonrpc",
+ };
+
+ const expectedJsonRpcMessage = new JsonrpcMessage();
+ expectedJsonRpcMessage.initJsonrpcMessage(
+ JsonRPCVersion,
+ id.toString(),
+ options.method,
+ options.params
+ );
+ expectedJsonRpcMessage.initBaseMessage({
+ headers: [],
+ latestBlockHeaderSetter: undefined,
+ });
+
+ const result = parser.parseMsg(options);
+ expect(result).toBeInstanceOf(BaseChainMessageContainer);
+ const jsonRpcMessage = result.getRPCMessage();
+ expect(jsonRpcMessage).toBeInstanceOf(JsonrpcMessage);
+ expect(jsonRpcMessage).toStrictEqual(expectedJsonRpcMessage);
+ });
+
+ it("parses a batch of relay messages correctly", () => {
+ const id = 123;
+ const options: SendRelaysBatchOptions = {
+ relays: [
+ { method: "method1", params: ["param1"], id: id },
+ { method: "method2", params: ["param2"] },
+ ],
+ apiInterface: "jsonrpc",
+ };
+
+ const generateJsonpcMsg = (method: string, params: any, id?: number) => {
+ const jsonrpcMsg = new JsonrpcMessage();
+ jsonrpcMsg.initJsonrpcMessage(
+ JsonRPCVersion,
+ id?.toString() ?? "",
+ method,
+ params
+ );
+ jsonrpcMsg.initBaseMessage({
+ headers: [],
+ latestBlockHeaderSetter: undefined,
+ });
+ return jsonrpcMsg;
+ };
+
+ const expectedJsonRpcBatchMessage = new JsonrpcBatchMessage();
+ expectedJsonRpcBatchMessage.initJsonrpcBatchMessage([
+ generateJsonpcMsg(options.relays[0].method, options.relays[0].params, id),
+ generateJsonpcMsg(options.relays[1].method, options.relays[1].params),
+ ]);
+
+ const result = parser.parseMsg(options);
+ expect(result).toBeInstanceOf(BaseChainMessageContainer);
+
+ const jsonRpcBatchMessage = result.getRPCMessage();
+ expect(jsonRpcBatchMessage).toBeInstanceOf(JsonrpcBatchMessage);
+ const secondMessageId =
+ (jsonRpcBatchMessage as JsonrpcBatchMessage).batch[1].id ?? "-1";
+
+ expect(Number.parseInt(secondMessageId)).toBeGreaterThan(0);
+
+ // Generated Id
+ expectedJsonRpcBatchMessage.batch[1].id = secondMessageId;
+ expect(jsonRpcBatchMessage).toStrictEqual(expectedJsonRpcBatchMessage);
+ });
+
+ it("throws an error with SendRestRelayOptions", () => {
+ const options: SendRestRelayOptions = {
+ connectionType: "GET",
+ url: "http://example.com",
+ };
+
+ expect(() => parser.parseMsg(options)).toThrow();
+ });
+});
diff --git a/ecosystem/lava-sdk/src/chainlib/jsonrpc.ts b/ecosystem/lava-sdk/src/chainlib/jsonrpc.ts
index 9fed07cf5d..6aabaaaf81 100644
--- a/ecosystem/lava-sdk/src/chainlib/jsonrpc.ts
+++ b/ecosystem/lava-sdk/src/chainlib/jsonrpc.ts
@@ -1,26 +1,42 @@
import {
BaseChainParser,
SendRelayOptions,
+ SendRelaysBatchOptions,
SendRestRelayOptions,
APIInterfaceJsonRPC,
HeadersPassSend,
+ ApiContainer,
} from "../chainlib/base_chain_parser";
import { Logger } from "../logger/logger";
-import { generateRPCData } from "../util/common";
+import { generateBatchRPCData, generateRPCData } from "../util/common";
import { HttpMethod, NOT_APPLICABLE } from "../common/common";
-import { FUNCTION_TAG } from "../grpc_web_services/lavanet/lava/spec/api_collection_pb";
-import { JsonrpcMessage } from "./chainproxy/rpcInterfaceMessages/json_rpc_message";
+import {
+ JsonrpcMessage,
+ newBatchMessage,
+} from "./chainproxy/rpcInterfaceMessages/json_rpc_message";
import { Parser } from "../parser/parser";
+import { JsonRPCVersion } from "./chainproxy/consts";
+import {
+ Api,
+ ApiCollection,
+ BlockParser,
+ FUNCTION_TAG,
+ PARSER_FUNC,
+ SpecCategory,
+} from "../grpc_web_services/lavanet/lava/spec/api_collection_pb";
+import { CombineSpecCategories } from "../util/apiCollection";
+import { compareRequestedBlockInBatch } from "./common";
import { BaseChainMessageContainer } from "./chain_message";
-const jsonrpcVersion = "2.0";
+const SEP = "&";
export class JsonRpcChainParser extends BaseChainParser {
constructor() {
super();
this.apiInterface = APIInterfaceJsonRPC;
}
+
parseMsg(
- options: SendRelayOptions | SendRestRelayOptions
+ options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions
): BaseChainMessageContainer {
if (this.isRest(options)) {
throw Logger.fatal(
@@ -28,6 +44,119 @@ export class JsonRpcChainParser extends BaseChainParser {
);
}
+ if ("relays" in options) {
+ // options is SendRelaysBatchOptions
+ return this.parseBatchMsg(options);
+ }
+
+ const [apiCont, apiCollection, latestRequestedBlock, jsonrpcMessage] =
+ this.parseSingleMessage(options);
+
+ // TODO: add extension parsing.
+
+ return new BaseChainMessageContainer(
+ apiCont.api,
+ latestRequestedBlock,
+ jsonrpcMessage,
+ apiCollection,
+ generateRPCData(jsonrpcMessage)
+ );
+ }
+
+ private parseBatchMsg(options: SendRelaysBatchOptions) {
+ let api: Api | undefined;
+ let apiCollection: ApiCollection | undefined;
+ let latestRequestedBlock = 0;
+ let earliestRequestedBlock = 0;
+ const jsonrpcMsgs: JsonrpcMessage[] = [];
+
+ for (let idx = 0; idx < options.relays.length; idx++) {
+ const relay = options.relays[idx];
+ const sendRelayOptions = {
+ method: relay.method,
+ params: relay.params,
+ id: relay.id,
+ chainId: options.chainId,
+ metadata: relay.metadata,
+ apiInterface: options.apiInterface,
+ };
+
+ const [
+ apiCont,
+ apiCollectionForMessage,
+ requestedBlockForMessage,
+ jsonrpcMessage,
+ ] = this.parseSingleMessage(sendRelayOptions);
+
+ jsonrpcMsgs.push(jsonrpcMessage);
+
+ if (idx === 0) {
+ // on the first entry store them
+ api = apiCont.api;
+ apiCollection = apiCollectionForMessage;
+ latestRequestedBlock = requestedBlockForMessage;
+ } else {
+ // on next entries we need to compare to existing data
+ if (api === undefined) {
+ throw Logger.fatal("Invalid parsing. First index were skipped");
+ }
+
+ let category = api.getCategory() ?? new SpecCategory();
+ category = CombineSpecCategories(
+ category,
+ apiCont.api.getCategory() ?? new SpecCategory()
+ );
+
+ const apiObj = api.toObject();
+ const apiContApi = apiCont.api.toObject();
+
+ api = new Api();
+ api.setEnabled(apiObj.enabled && apiContApi.enabled);
+ api.setName(apiObj.name + SEP + apiContApi.name);
+ api.setComputeUnits(apiObj.computeUnits + apiContApi.computeUnits);
+ api.setExtraComputeUnits(
+ apiObj.extraComputeUnits + apiContApi.extraComputeUnits
+ );
+ api.setCategory(category);
+ const blockParser = new BlockParser();
+ blockParser.setParserArgList([]);
+ blockParser.setParserFunc(PARSER_FUNC.EMPTY);
+ blockParser.setDefaultValue("");
+ blockParser.setEncoding("");
+ api.setBlockParsing(blockParser);
+
+ [latestRequestedBlock, earliestRequestedBlock] =
+ compareRequestedBlockInBatch(
+ latestRequestedBlock,
+ requestedBlockForMessage
+ );
+ }
+ }
+
+ if (!api || !apiCollection) {
+ throw Logger.fatal(
+ "Invalid parsing. Api and ApiCollection is not defined"
+ );
+ }
+
+ const batchMsg = newBatchMessage(jsonrpcMsgs);
+ if (batchMsg instanceof Error) {
+ throw Logger.fatal("Error creating batch message", batchMsg);
+ }
+
+ // TODO: add extension parsing.
+ return new BaseChainMessageContainer(
+ api,
+ latestRequestedBlock,
+ batchMsg,
+ apiCollection,
+ generateBatchRPCData(batchMsg)
+ );
+ }
+
+ private parseSingleMessage(
+ options: SendRelayOptions
+ ): [ApiContainer, ApiCollection, number, JsonrpcMessage] {
const apiCont = this.getSupportedApi(options.method, HttpMethod.POST);
const apiCollection = this.getApiCollection({
addon: apiCont.collectionKey.addon,
@@ -47,7 +176,7 @@ export class JsonRpcChainParser extends BaseChainParser {
const jsonrpcMessage = new JsonrpcMessage();
jsonrpcMessage.initJsonrpcMessage(
- jsonrpcVersion,
+ JsonRPCVersion,
String(options.id ?? Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)),
options.method,
options.params
@@ -86,14 +215,6 @@ export class JsonRpcChainParser extends BaseChainParser {
}
}
- // TODO: add extension parsing.
-
- return new BaseChainMessageContainer(
- apiCont.api,
- requestedBlock,
- jsonrpcMessage,
- apiCollection,
- generateRPCData(jsonrpcMessage)
- );
+ return [apiCont, apiCollection, requestedBlock, jsonrpcMessage];
}
}
diff --git a/ecosystem/lava-sdk/src/chainlib/rest.ts b/ecosystem/lava-sdk/src/chainlib/rest.ts
index 11bcc6ad2c..864bcd0013 100644
--- a/ecosystem/lava-sdk/src/chainlib/rest.ts
+++ b/ecosystem/lava-sdk/src/chainlib/rest.ts
@@ -6,7 +6,7 @@ import {
HeadersPassSend,
} from "../chainlib/base_chain_parser";
import { Logger } from "../logger/logger";
-import { HttpMethod, NOT_APPLICABLE } from "../common/common";
+import { DUMMY_URL, HttpMethod, NOT_APPLICABLE } from "../common/common";
import { Parser } from "../parser/parser";
import { FUNCTION_TAG } from "../grpc_web_services/lavanet/lava/spec/api_collection_pb";
import { RestMessage } from "./chainproxy/rpcInterfaceMessages/rest_message";
@@ -26,10 +26,13 @@ export class RestChainParser extends BaseChainParser {
);
}
+ const parsedUrl = new URL(options.url, DUMMY_URL);
+
const [apiCont, found] = this.matchSpecApiByName(
- options.url,
+ parsedUrl.pathname,
options.connectionType
);
+
if (!found || !apiCont) {
throw Logger.fatal("Rest api not supported", options.url);
}
diff --git a/ecosystem/lava-sdk/src/chainlib/tendermint.test.ts b/ecosystem/lava-sdk/src/chainlib/tendermint.test.ts
new file mode 100644
index 0000000000..040c5c3496
--- /dev/null
+++ b/ecosystem/lava-sdk/src/chainlib/tendermint.test.ts
@@ -0,0 +1,153 @@
+import {
+ Api,
+ ApiCollection,
+ BlockParser,
+ CollectionData,
+ PARSER_FUNC,
+} from "../grpc_web_services/lavanet/lava/spec/api_collection_pb";
+import { Spec } from "../grpc_web_services/lavanet/lava/spec/spec_pb";
+import {
+ SendRelayOptions,
+ SendRelaysBatchOptions,
+ SendRestRelayOptions,
+} from "./base_chain_parser";
+import { BaseChainMessageContainer } from "./chain_message";
+import { JsonRPCVersion } from "./chainproxy/consts";
+import { JsonrpcBatchMessage } from "./chainproxy/rpcInterfaceMessages/json_rpc_message";
+import { TendermintrpcMessage } from "./chainproxy/rpcInterfaceMessages/tendermint_rpc_message";
+import { TendermintRpcChainParser } from "./tendermint";
+
+describe("ParseTendermintRPCMessage", () => {
+ let parser: TendermintRpcChainParser;
+ let spec: Spec;
+
+ beforeAll(() => {
+ spec = new Spec();
+ const apiCollection = new ApiCollection();
+ const collectionData = new CollectionData();
+ const api1 = new Api();
+ const api2 = new Api();
+ const blockParser = new BlockParser();
+
+ blockParser.setParserFunc(PARSER_FUNC.DEFAULT);
+ blockParser.setParserArgList(["latest"]);
+
+ api1.setName("method1");
+ api1.setEnabled(true);
+ api1.setBlockParsing(blockParser);
+
+ api2.setName("method2");
+ api2.setEnabled(true);
+ api2.setBlockParsing(blockParser);
+
+ collectionData.setApiInterface("tendermintrpc");
+
+ apiCollection.setApisList([api1, api2]);
+ apiCollection.setCollectionData(collectionData);
+ apiCollection.setEnabled(true);
+
+ spec.setApiCollectionsList([apiCollection]);
+ spec.setEnabled(true);
+ });
+
+ beforeEach(() => {
+ parser = new TendermintRpcChainParser();
+ parser.init(spec);
+ });
+
+ it("parses a single relay message correctly", () => {
+ const id = 123;
+ const options: SendRelayOptions = {
+ method: "method1",
+ params: ["param1", "param2"],
+ id: id,
+ apiInterface: "tendermintrpc",
+ };
+
+ const expectedTendermintRpcMessage = new TendermintrpcMessage();
+ expectedTendermintRpcMessage.initJsonrpcMessage(
+ JsonRPCVersion,
+ id.toString(),
+ options.method,
+ options.params
+ );
+ expectedTendermintRpcMessage.initBaseMessage({
+ headers: [],
+ latestBlockHeaderSetter: undefined,
+ });
+
+ const result = parser.parseMsg(options);
+ expect(result).toBeInstanceOf(BaseChainMessageContainer);
+ const tendermintRpcMessage = result.getRPCMessage();
+ expect(tendermintRpcMessage).toBeInstanceOf(TendermintrpcMessage);
+ expect(tendermintRpcMessage).toStrictEqual(expectedTendermintRpcMessage);
+ });
+
+ it("parses a batch of relay messages correctly", () => {
+ const id = 123;
+ const options: SendRelaysBatchOptions = {
+ relays: [
+ { method: "method1", params: ["param1"], id: id },
+ { method: "method2", params: ["param2"] },
+ ],
+ apiInterface: "tendermintrpc",
+ };
+
+ const generateTendermintrpcMsg = (
+ method: string,
+ params: any,
+ id?: number
+ ) => {
+ const tendermintrpcMsg = new TendermintrpcMessage();
+ tendermintrpcMsg.initJsonrpcMessage(
+ JsonRPCVersion,
+ id?.toString() ?? "",
+ method,
+ params
+ );
+ tendermintrpcMsg.initBaseMessage({
+ headers: [],
+ latestBlockHeaderSetter: undefined,
+ });
+ return tendermintrpcMsg;
+ };
+
+ const expectedTendermintRpcBatchMessage = new JsonrpcBatchMessage();
+ expectedTendermintRpcBatchMessage.initJsonrpcBatchMessage([
+ generateTendermintrpcMsg(
+ options.relays[0].method,
+ options.relays[0].params,
+ id
+ ),
+ generateTendermintrpcMsg(
+ options.relays[1].method,
+ options.relays[1].params
+ ),
+ ]);
+
+ const result = parser.parseMsg(options);
+ expect(result).toBeInstanceOf(BaseChainMessageContainer);
+
+ const jsonRpcBatchMessage = result.getRPCMessage();
+ expect(jsonRpcBatchMessage).toBeInstanceOf(JsonrpcBatchMessage);
+ const secondMessageId =
+ (jsonRpcBatchMessage as JsonrpcBatchMessage).batch[1].id ?? "-1";
+
+ expect(Number.parseInt(secondMessageId)).toBeGreaterThan(0);
+
+ // Generated Id
+ expectedTendermintRpcBatchMessage.batch[1].id = secondMessageId;
+ expect(jsonRpcBatchMessage).toStrictEqual(
+ expectedTendermintRpcBatchMessage
+ );
+ });
+
+ it("throws an error with SendRestRelayOptions", () => {
+ const options: SendRestRelayOptions = {
+ connectionType: "GET",
+ url: "http://example.com",
+ };
+
+ expect(() => parser.parseMsg(options)).toThrow();
+ });
+});
diff --git a/ecosystem/lava-sdk/src/chainlib/tendermint.ts b/ecosystem/lava-sdk/src/chainlib/tendermint.ts
index 8db130cec1..9e012f2548 100644
--- a/ecosystem/lava-sdk/src/chainlib/tendermint.ts
+++ b/ecosystem/lava-sdk/src/chainlib/tendermint.ts
@@ -4,24 +4,37 @@ import {
SendRestRelayOptions,
APIInterfaceTendermintRPC,
HeadersPassSend,
+ SendRelaysBatchOptions,
+ ApiContainer,
} from "../chainlib/base_chain_parser";
import { Logger } from "../logger/logger";
-import { generateRPCData } from "../util/common";
-import { FUNCTION_TAG } from "../grpc_web_services/lavanet/lava/spec/api_collection_pb";
+import { generateBatchRPCData, generateRPCData } from "../util/common";
+import {
+ Api,
+ ApiCollection,
+ BlockParser,
+ FUNCTION_TAG,
+ PARSER_FUNC,
+ SpecCategory,
+} from "../grpc_web_services/lavanet/lava/spec/api_collection_pb";
import { TendermintrpcMessage } from "./chainproxy/rpcInterfaceMessages/tendermint_rpc_message";
import { Parser } from "../parser/parser";
import { BaseChainMessageContainer } from "./chain_message";
import { NOT_APPLICABLE } from "../common/common";
+import { CombineSpecCategories } from "../util/apiCollection";
+import { compareRequestedBlockInBatch } from "./common";
+import { newBatchMessage } from "./chainproxy/rpcInterfaceMessages/json_rpc_message";
+import { JsonRPCVersion } from "./chainproxy/consts";
const Method = ""; // in tendermint all types are empty (in spec)
-const jsonrpcVersion = "2.0";
+const SEP = "&";
export class TendermintRpcChainParser extends BaseChainParser {
constructor() {
super();
this.apiInterface = APIInterfaceTendermintRPC;
}
parseMsg(
- options: SendRelayOptions | SendRestRelayOptions
+ options: SendRelayOptions | SendRelaysBatchOptions | SendRestRelayOptions
): BaseChainMessageContainer {
if (this.isRest(options)) {
throw Logger.fatal(
@@ -29,6 +42,116 @@ export class TendermintRpcChainParser extends BaseChainParser {
);
}
+ if ("relays" in options) {
+ // options is SendRelaysBatchOptions
+ return this.parseBatchMsg(options);
+ }
+
+ const [apiCont, apiCollection, latestRequestedBlock, tendermintrpcMessage] =
+ this.parseSingleMessage(options);
+
+ // TODO: add extension parsing.
+ return new BaseChainMessageContainer(
+ apiCont.api,
+ latestRequestedBlock,
+ tendermintrpcMessage,
+ apiCollection,
+ generateRPCData(tendermintrpcMessage)
+ );
+ }
+
+ private parseBatchMsg(options: SendRelaysBatchOptions) {
+ let api: Api | undefined;
+ let apiCollection: ApiCollection | undefined;
+ let latestRequestedBlock = 0;
+ let earliestRequestedBlock = 0;
+ const tendermintrpcMsgs: TendermintrpcMessage[] = [];
+
+ for (let idx = 0; idx < options.relays.length; idx++) {
+ const relay = options.relays[idx];
+ const sendRelayOptions = {
+ method: relay.method,
+ params: relay.params,
+ id: relay.id,
+ chainId: options.chainId,
+ metadata: relay.metadata,
+ apiInterface: options.apiInterface,
+ };
+
+ const [
+ apiCont,
+ apiCollectionForMessage,
+ requestedBlockForMessage,
+ tendermintrpcMessage,
+ ] = this.parseSingleMessage(sendRelayOptions);
+ tendermintrpcMsgs.push(tendermintrpcMessage);
+ if (idx === 0) {
+ // on the first entry store them
+ api = apiCont.api;
+ apiCollection = apiCollectionForMessage;
+ latestRequestedBlock = requestedBlockForMessage;
+ } else {
+ // on next entries we need to compare to existing data
+ if (api === undefined) {
+ throw Logger.fatal("Invalid parsing. First index were skipped");
+ }
+
+ let category = api.getCategory() ?? new SpecCategory();
+ category = CombineSpecCategories(
+ category,
+ apiCont.api.getCategory() ?? new SpecCategory()
+ );
+
+ const apiObj = api.toObject();
+ const apiContApi = apiCont.api.toObject();
+
+ api = new Api();
+ api.setEnabled(apiObj.enabled && apiContApi.enabled);
+ api.setName(apiObj.name + SEP + apiContApi.name);
+ api.setComputeUnits(apiObj.computeUnits + apiContApi.computeUnits);
+ api.setExtraComputeUnits(
+ apiObj.extraComputeUnits + apiContApi.extraComputeUnits
+ );
+ api.setCategory(category);
+ const blockParser = new BlockParser();
+ blockParser.setParserArgList([]);
+ blockParser.setParserFunc(PARSER_FUNC.EMPTY);
+ blockParser.setDefaultValue("");
+ blockParser.setEncoding("");
+ api.setBlockParsing(blockParser);
+
+ [latestRequestedBlock, earliestRequestedBlock] =
+ compareRequestedBlockInBatch(
+ latestRequestedBlock,
+ requestedBlockForMessage
+ );
+ }
+ }
+
+ if (!api || !apiCollection) {
+ throw Logger.fatal(
+ "Invalid parsing. Api and ApiCollection is not defined"
+ );
+ }
+
+ const batchMsg = newBatchMessage(tendermintrpcMsgs);
+ if (batchMsg instanceof Error) {
+ throw Logger.fatal("Error creating batch message", batchMsg);
+ }
+
+ // TODO: add extension parsing.
+ return new BaseChainMessageContainer(
+ api,
+ latestRequestedBlock,
+ batchMsg,
+ apiCollection,
+ generateBatchRPCData(batchMsg)
+ );
+ }
+
+ parseSingleMessage(
+ options: SendRelayOptions
+ ): [ApiContainer, ApiCollection, number, TendermintrpcMessage] {
const apiCont = this.getSupportedApi(options.method, Method);
const apiCollection = this.getApiCollection({
addon: apiCont.collectionKey.addon,
@@ -48,7 +171,7 @@ export class TendermintRpcChainParser extends BaseChainParser {
const tendermintrpcMessage = new TendermintrpcMessage();
tendermintrpcMessage.initJsonrpcMessage(
- jsonrpcVersion,
+ JsonRPCVersion,
String(options.id ?? Math.floor(Math.random() * Number.MAX_SAFE_INTEGER)),
options.method,
options.params
@@ -90,14 +213,6 @@ export class TendermintRpcChainParser extends BaseChainParser {
}
}
- // TODO: add extension parsing.
-
- return new BaseChainMessageContainer(
- apiCont.api,
- requestedBlock,
- tendermintrpcMessage,
- apiCollection,
- generateRPCData(tendermintrpcMessage)
- );
+ return [apiCont, apiCollection, requestedBlock, tendermintrpcMessage];
}
}
diff --git a/ecosystem/lava-sdk/src/common/common.ts b/ecosystem/lava-sdk/src/common/common.ts
index f25ae159d5..012acd4d18 100644
--- a/ecosystem/lava-sdk/src/common/common.ts
+++ b/ecosystem/lava-sdk/src/common/common.ts
@@ -31,3 +31,5 @@ export enum HttpMethod {
OPTIONS = "OPTIONS",
TRACE = "TRACE",
}
+
+export const DUMMY_URL = "http://dummy.com";
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.d.ts
deleted file mode 100644
index a82b8bc9fc..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-// package: amino
-// file: amino/amino.proto
-
-import * as jspb from "google-protobuf";
-import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
-
- export const name: jspb.ExtensionFieldInfo;
-
- export const messageEncoding: jspb.ExtensionFieldInfo;
-
- export const encoding: jspb.ExtensionFieldInfo;
-
- export const fieldName: jspb.ExtensionFieldInfo;
-
- export const dontOmitempty: jspb.ExtensionFieldInfo;
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.js
deleted file mode 100644
index 467238b035..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb.js
+++ /dev/null
@@ -1,147 +0,0 @@
-// source: amino/amino.proto
-/**
- * @fileoverview
- * @enhanceable
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
-// GENERATED CODE -- DO NOT EDIT!
-
-var jspb = require('google-protobuf');
-var goog = jspb;
-var global = Function('return this')();
-
-var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
-goog.object.extend(proto, google_protobuf_descriptor_pb);
-goog.exportSymbol('proto.amino.dontOmitempty', null, global);
-goog.exportSymbol('proto.amino.encoding', null, global);
-goog.exportSymbol('proto.amino.fieldName', null, global);
-goog.exportSymbol('proto.amino.messageEncoding', null, global);
-goog.exportSymbol('proto.amino.name', null, global);
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `name`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.amino.name = new jspb.ExtensionFieldInfo(
- 11110001,
- {name: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[11110001] = new jspb.ExtensionFieldBinaryInfo(
- proto.amino.name,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[11110001] = proto.amino.name;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `messageEncoding`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.amino.messageEncoding = new jspb.ExtensionFieldInfo(
- 11110002,
- {messageEncoding: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[11110002] = new jspb.ExtensionFieldBinaryInfo(
- proto.amino.messageEncoding,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[11110002] = proto.amino.messageEncoding;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `encoding`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.amino.encoding = new jspb.ExtensionFieldInfo(
- 11110003,
- {encoding: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[11110003] = new jspb.ExtensionFieldBinaryInfo(
- proto.amino.encoding,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[11110003] = proto.amino.encoding;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `fieldName`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.amino.fieldName = new jspb.ExtensionFieldInfo(
- 11110004,
- {fieldName: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[11110004] = new jspb.ExtensionFieldBinaryInfo(
- proto.amino.fieldName,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[11110004] = proto.amino.fieldName;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `dontOmitempty`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.amino.dontOmitempty = new jspb.ExtensionFieldInfo(
- 11110005,
- {dontOmitempty: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[11110005] = new jspb.ExtensionFieldBinaryInfo(
- proto.amino.dontOmitempty,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[11110005] = proto.amino.dontOmitempty;
-
-goog.object.extend(exports, proto.amino);
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.d.ts
deleted file mode 100644
index bcb4ebb33e..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: amino
-// file: amino/amino.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.js
deleted file mode 100644
index bcb4ebb33e..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/amino/amino_pb_service.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: amino
-// file: amino/amino.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.d.ts
deleted file mode 100644
index 76d5f4f598..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.d.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-// package: cosmos.base.query.v1beta1
-// file: cosmos/base/query/v1beta1/pagination.proto
-
-import * as jspb from "google-protobuf";
-
-export class PageRequest extends jspb.Message {
- getKey(): Uint8Array | string;
- getKey_asU8(): Uint8Array;
- getKey_asB64(): string;
- setKey(value: Uint8Array | string): void;
-
- getOffset(): number;
- setOffset(value: number): void;
-
- getLimit(): number;
- setLimit(value: number): void;
-
- getCountTotal(): boolean;
- setCountTotal(value: boolean): void;
-
- getReverse(): boolean;
- setReverse(value: boolean): void;
-
- serializeBinary(): Uint8Array;
- toObject(includeInstance?: boolean): PageRequest.AsObject;
- static toObject(includeInstance: boolean, msg: PageRequest): PageRequest.AsObject;
- static extensions: {[key: number]: jspb.ExtensionFieldInfo};
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo};
- static serializeBinaryToWriter(message: PageRequest, writer: jspb.BinaryWriter): void;
- static deserializeBinary(bytes: Uint8Array): PageRequest;
- static deserializeBinaryFromReader(message: PageRequest, reader: jspb.BinaryReader): PageRequest;
-}
-
-export namespace PageRequest {
- export type AsObject = {
- key: Uint8Array | string,
- offset: number,
- limit: number,
- countTotal: boolean,
- reverse: boolean,
- }
-}
-
-export class PageResponse extends jspb.Message {
- getNextKey(): Uint8Array | string;
- getNextKey_asU8(): Uint8Array;
- getNextKey_asB64(): string;
- setNextKey(value: Uint8Array | string): void;
-
- getTotal(): number;
- setTotal(value: number): void;
-
- serializeBinary(): Uint8Array;
- toObject(includeInstance?: boolean): PageResponse.AsObject;
- static toObject(includeInstance: boolean, msg: PageResponse): PageResponse.AsObject;
- static extensions: {[key: number]: jspb.ExtensionFieldInfo};
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo};
- static serializeBinaryToWriter(message: PageResponse, writer: jspb.BinaryWriter): void;
- static deserializeBinary(bytes: Uint8Array): PageResponse;
- static deserializeBinaryFromReader(message: PageResponse, reader: jspb.BinaryReader): PageResponse;
-}
-
-export namespace PageResponse {
- export type AsObject = {
- nextKey: Uint8Array | string,
- total: number,
- }
-}
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.js
deleted file mode 100644
index 4093aa0c52..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb.js
+++ /dev/null
@@ -1,517 +0,0 @@
-// source: cosmos/base/query/v1beta1/pagination.proto
-/**
- * @fileoverview
- * @enhanceable
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
-// GENERATED CODE -- DO NOT EDIT!
-
-var jspb = require('google-protobuf');
-var goog = jspb;
-var global = Function('return this')();
-
-goog.exportSymbol('proto.cosmos.base.query.v1beta1.PageRequest', null, global);
-goog.exportSymbol('proto.cosmos.base.query.v1beta1.PageResponse', null, global);
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.cosmos.base.query.v1beta1.PageRequest = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.cosmos.base.query.v1beta1.PageRequest, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.cosmos.base.query.v1beta1.PageRequest.displayName = 'proto.cosmos.base.query.v1beta1.PageRequest';
-}
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.cosmos.base.query.v1beta1.PageResponse = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.cosmos.base.query.v1beta1.PageResponse, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.cosmos.base.query.v1beta1.PageResponse.displayName = 'proto.cosmos.base.query.v1beta1.PageResponse';
-}
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.toObject = function(opt_includeInstance) {
- return proto.cosmos.base.query.v1beta1.PageRequest.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.cosmos.base.query.v1beta1.PageRequest} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.query.v1beta1.PageRequest.toObject = function(includeInstance, msg) {
- var f, obj = {
- key: msg.getKey_asB64(),
- offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
- limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
- countTotal: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
- reverse: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.cosmos.base.query.v1beta1.PageRequest}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.cosmos.base.query.v1beta1.PageRequest;
- return proto.cosmos.base.query.v1beta1.PageRequest.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.cosmos.base.query.v1beta1.PageRequest} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.cosmos.base.query.v1beta1.PageRequest}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
- msg.setKey(value);
- break;
- case 2:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setOffset(value);
- break;
- case 3:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setLimit(value);
- break;
- case 4:
- var value = /** @type {boolean} */ (reader.readBool());
- msg.setCountTotal(value);
- break;
- case 5:
- var value = /** @type {boolean} */ (reader.readBool());
- msg.setReverse(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.cosmos.base.query.v1beta1.PageRequest.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.cosmos.base.query.v1beta1.PageRequest} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.query.v1beta1.PageRequest.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getKey_asU8();
- if (f.length > 0) {
- writer.writeBytes(
- 1,
- f
- );
- }
- f = message.getOffset();
- if (f !== 0) {
- writer.writeUint64(
- 2,
- f
- );
- }
- f = message.getLimit();
- if (f !== 0) {
- writer.writeUint64(
- 3,
- f
- );
- }
- f = message.getCountTotal();
- if (f) {
- writer.writeBool(
- 4,
- f
- );
- }
- f = message.getReverse();
- if (f) {
- writer.writeBool(
- 5,
- f
- );
- }
-};
-
-
-/**
- * optional bytes key = 1;
- * @return {!(string|Uint8Array)}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.getKey = function() {
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * optional bytes key = 1;
- * This is a type-conversion wrapper around `getKey()`
- * @return {string}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.getKey_asB64 = function() {
- return /** @type {string} */ (jspb.Message.bytesAsB64(
- this.getKey()));
-};
-
-
-/**
- * optional bytes key = 1;
- * Note that Uint8Array is not supported on all browsers.
- * @see http://caniuse.com/Uint8Array
- * This is a type-conversion wrapper around `getKey()`
- * @return {!Uint8Array}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.getKey_asU8 = function() {
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
- this.getKey()));
-};
-
-
-/**
- * @param {!(string|Uint8Array)} value
- * @return {!proto.cosmos.base.query.v1beta1.PageRequest} returns this
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.setKey = function(value) {
- return jspb.Message.setProto3BytesField(this, 1, value);
-};
-
-
-/**
- * optional uint64 offset = 2;
- * @return {number}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.getOffset = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.cosmos.base.query.v1beta1.PageRequest} returns this
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.setOffset = function(value) {
- return jspb.Message.setProto3IntField(this, 2, value);
-};
-
-
-/**
- * optional uint64 limit = 3;
- * @return {number}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.getLimit = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.cosmos.base.query.v1beta1.PageRequest} returns this
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.setLimit = function(value) {
- return jspb.Message.setProto3IntField(this, 3, value);
-};
-
-
-/**
- * optional bool count_total = 4;
- * @return {boolean}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.getCountTotal = function() {
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
-};
-
-
-/**
- * @param {boolean} value
- * @return {!proto.cosmos.base.query.v1beta1.PageRequest} returns this
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.setCountTotal = function(value) {
- return jspb.Message.setProto3BooleanField(this, 4, value);
-};
-
-
-/**
- * optional bool reverse = 5;
- * @return {boolean}
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.getReverse = function() {
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
-};
-
-
-/**
- * @param {boolean} value
- * @return {!proto.cosmos.base.query.v1beta1.PageRequest} returns this
- */
-proto.cosmos.base.query.v1beta1.PageRequest.prototype.setReverse = function(value) {
- return jspb.Message.setProto3BooleanField(this, 5, value);
-};
-
-
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.cosmos.base.query.v1beta1.PageResponse.prototype.toObject = function(opt_includeInstance) {
- return proto.cosmos.base.query.v1beta1.PageResponse.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.cosmos.base.query.v1beta1.PageResponse} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.query.v1beta1.PageResponse.toObject = function(includeInstance, msg) {
- var f, obj = {
- nextKey: msg.getNextKey_asB64(),
- total: jspb.Message.getFieldWithDefault(msg, 2, 0)
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.cosmos.base.query.v1beta1.PageResponse}
- */
-proto.cosmos.base.query.v1beta1.PageResponse.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.cosmos.base.query.v1beta1.PageResponse;
- return proto.cosmos.base.query.v1beta1.PageResponse.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.cosmos.base.query.v1beta1.PageResponse} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.cosmos.base.query.v1beta1.PageResponse}
- */
-proto.cosmos.base.query.v1beta1.PageResponse.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
- msg.setNextKey(value);
- break;
- case 2:
- var value = /** @type {number} */ (reader.readUint64());
- msg.setTotal(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.cosmos.base.query.v1beta1.PageResponse.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.cosmos.base.query.v1beta1.PageResponse.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.cosmos.base.query.v1beta1.PageResponse} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.query.v1beta1.PageResponse.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getNextKey_asU8();
- if (f.length > 0) {
- writer.writeBytes(
- 1,
- f
- );
- }
- f = message.getTotal();
- if (f !== 0) {
- writer.writeUint64(
- 2,
- f
- );
- }
-};
-
-
-/**
- * optional bytes next_key = 1;
- * @return {!(string|Uint8Array)}
- */
-proto.cosmos.base.query.v1beta1.PageResponse.prototype.getNextKey = function() {
- return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * optional bytes next_key = 1;
- * This is a type-conversion wrapper around `getNextKey()`
- * @return {string}
- */
-proto.cosmos.base.query.v1beta1.PageResponse.prototype.getNextKey_asB64 = function() {
- return /** @type {string} */ (jspb.Message.bytesAsB64(
- this.getNextKey()));
-};
-
-
-/**
- * optional bytes next_key = 1;
- * Note that Uint8Array is not supported on all browsers.
- * @see http://caniuse.com/Uint8Array
- * This is a type-conversion wrapper around `getNextKey()`
- * @return {!Uint8Array}
- */
-proto.cosmos.base.query.v1beta1.PageResponse.prototype.getNextKey_asU8 = function() {
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
- this.getNextKey()));
-};
-
-
-/**
- * @param {!(string|Uint8Array)} value
- * @return {!proto.cosmos.base.query.v1beta1.PageResponse} returns this
- */
-proto.cosmos.base.query.v1beta1.PageResponse.prototype.setNextKey = function(value) {
- return jspb.Message.setProto3BytesField(this, 1, value);
-};
-
-
-/**
- * optional uint64 total = 2;
- * @return {number}
- */
-proto.cosmos.base.query.v1beta1.PageResponse.prototype.getTotal = function() {
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
-};
-
-
-/**
- * @param {number} value
- * @return {!proto.cosmos.base.query.v1beta1.PageResponse} returns this
- */
-proto.cosmos.base.query.v1beta1.PageResponse.prototype.setTotal = function(value) {
- return jspb.Message.setProto3IntField(this, 2, value);
-};
-
-
-goog.object.extend(exports, proto.cosmos.base.query.v1beta1);
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.d.ts
deleted file mode 100644
index 598ed35f7c..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: cosmos.base.query.v1beta1
-// file: cosmos/base/query/v1beta1/pagination.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.js
deleted file mode 100644
index 598ed35f7c..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/query/v1beta1/pagination_pb_service.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: cosmos.base.query.v1beta1
-// file: cosmos/base/query/v1beta1/pagination.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.d.ts
deleted file mode 100644
index a8e6a167c2..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.d.ts
+++ /dev/null
@@ -1,96 +0,0 @@
-// package: cosmos.base.v1beta1
-// file: cosmos/base/v1beta1/coin.proto
-
-import * as jspb from "google-protobuf";
-import * as gogoproto_gogo_pb from "../../../gogoproto/gogo_pb";
-import * as cosmos_proto_cosmos_pb from "../../../cosmos_proto/cosmos_pb";
-import * as amino_amino_pb from "../../../amino/amino_pb";
-
-export class Coin extends jspb.Message {
- getDenom(): string;
- setDenom(value: string): void;
-
- getAmount(): string;
- setAmount(value: string): void;
-
- serializeBinary(): Uint8Array;
- toObject(includeInstance?: boolean): Coin.AsObject;
- static toObject(includeInstance: boolean, msg: Coin): Coin.AsObject;
- static extensions: {[key: number]: jspb.ExtensionFieldInfo};
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo};
- static serializeBinaryToWriter(message: Coin, writer: jspb.BinaryWriter): void;
- static deserializeBinary(bytes: Uint8Array): Coin;
- static deserializeBinaryFromReader(message: Coin, reader: jspb.BinaryReader): Coin;
-}
-
-export namespace Coin {
- export type AsObject = {
- denom: string,
- amount: string,
- }
-}
-
-export class DecCoin extends jspb.Message {
- getDenom(): string;
- setDenom(value: string): void;
-
- getAmount(): string;
- setAmount(value: string): void;
-
- serializeBinary(): Uint8Array;
- toObject(includeInstance?: boolean): DecCoin.AsObject;
- static toObject(includeInstance: boolean, msg: DecCoin): DecCoin.AsObject;
- static extensions: {[key: number]: jspb.ExtensionFieldInfo};
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo};
- static serializeBinaryToWriter(message: DecCoin, writer: jspb.BinaryWriter): void;
- static deserializeBinary(bytes: Uint8Array): DecCoin;
- static deserializeBinaryFromReader(message: DecCoin, reader: jspb.BinaryReader): DecCoin;
-}
-
-export namespace DecCoin {
- export type AsObject = {
- denom: string,
- amount: string,
- }
-}
-
-export class IntProto extends jspb.Message {
- getInt(): string;
- setInt(value: string): void;
-
- serializeBinary(): Uint8Array;
- toObject(includeInstance?: boolean): IntProto.AsObject;
- static toObject(includeInstance: boolean, msg: IntProto): IntProto.AsObject;
- static extensions: {[key: number]: jspb.ExtensionFieldInfo};
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo};
- static serializeBinaryToWriter(message: IntProto, writer: jspb.BinaryWriter): void;
- static deserializeBinary(bytes: Uint8Array): IntProto;
- static deserializeBinaryFromReader(message: IntProto, reader: jspb.BinaryReader): IntProto;
-}
-
-export namespace IntProto {
- export type AsObject = {
- pb_int: string,
- }
-}
-
-export class DecProto extends jspb.Message {
- getDec(): string;
- setDec(value: string): void;
-
- serializeBinary(): Uint8Array;
- toObject(includeInstance?: boolean): DecProto.AsObject;
- static toObject(includeInstance: boolean, msg: DecProto): DecProto.AsObject;
- static extensions: {[key: number]: jspb.ExtensionFieldInfo};
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo};
- static serializeBinaryToWriter(message: DecProto, writer: jspb.BinaryWriter): void;
- static deserializeBinary(bytes: Uint8Array): DecProto;
- static deserializeBinaryFromReader(message: DecProto, reader: jspb.BinaryReader): DecProto;
-}
-
-export namespace DecProto {
- export type AsObject = {
- dec: string,
- }
-}
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.js
deleted file mode 100644
index 0f246bd1ab..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb.js
+++ /dev/null
@@ -1,689 +0,0 @@
-// source: cosmos/base/v1beta1/coin.proto
-/**
- * @fileoverview
- * @enhanceable
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
-// GENERATED CODE -- DO NOT EDIT!
-
-var jspb = require('google-protobuf');
-var goog = jspb;
-var global = Function('return this')();
-
-var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
-goog.object.extend(proto, gogoproto_gogo_pb);
-var cosmos_proto_cosmos_pb = require('../../../cosmos_proto/cosmos_pb.js');
-goog.object.extend(proto, cosmos_proto_cosmos_pb);
-var amino_amino_pb = require('../../../amino/amino_pb.js');
-goog.object.extend(proto, amino_amino_pb);
-goog.exportSymbol('proto.cosmos.base.v1beta1.Coin', null, global);
-goog.exportSymbol('proto.cosmos.base.v1beta1.DecCoin', null, global);
-goog.exportSymbol('proto.cosmos.base.v1beta1.DecProto', null, global);
-goog.exportSymbol('proto.cosmos.base.v1beta1.IntProto', null, global);
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.cosmos.base.v1beta1.Coin = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.cosmos.base.v1beta1.Coin, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.cosmos.base.v1beta1.Coin.displayName = 'proto.cosmos.base.v1beta1.Coin';
-}
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.cosmos.base.v1beta1.DecCoin = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.cosmos.base.v1beta1.DecCoin, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.cosmos.base.v1beta1.DecCoin.displayName = 'proto.cosmos.base.v1beta1.DecCoin';
-}
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.cosmos.base.v1beta1.IntProto = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.cosmos.base.v1beta1.IntProto, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.cosmos.base.v1beta1.IntProto.displayName = 'proto.cosmos.base.v1beta1.IntProto';
-}
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.cosmos.base.v1beta1.DecProto = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.cosmos.base.v1beta1.DecProto, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.cosmos.base.v1beta1.DecProto.displayName = 'proto.cosmos.base.v1beta1.DecProto';
-}
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.cosmos.base.v1beta1.Coin.prototype.toObject = function(opt_includeInstance) {
- return proto.cosmos.base.v1beta1.Coin.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.cosmos.base.v1beta1.Coin} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.v1beta1.Coin.toObject = function(includeInstance, msg) {
- var f, obj = {
- denom: jspb.Message.getFieldWithDefault(msg, 1, ""),
- amount: jspb.Message.getFieldWithDefault(msg, 2, "")
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.cosmos.base.v1beta1.Coin}
- */
-proto.cosmos.base.v1beta1.Coin.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.cosmos.base.v1beta1.Coin;
- return proto.cosmos.base.v1beta1.Coin.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.cosmos.base.v1beta1.Coin} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.cosmos.base.v1beta1.Coin}
- */
-proto.cosmos.base.v1beta1.Coin.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setDenom(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setAmount(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.cosmos.base.v1beta1.Coin.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.cosmos.base.v1beta1.Coin.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.cosmos.base.v1beta1.Coin} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.v1beta1.Coin.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getDenom();
- if (f.length > 0) {
- writer.writeString(
- 1,
- f
- );
- }
- f = message.getAmount();
- if (f.length > 0) {
- writer.writeString(
- 2,
- f
- );
- }
-};
-
-
-/**
- * optional string denom = 1;
- * @return {string}
- */
-proto.cosmos.base.v1beta1.Coin.prototype.getDenom = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos.base.v1beta1.Coin} returns this
- */
-proto.cosmos.base.v1beta1.Coin.prototype.setDenom = function(value) {
- return jspb.Message.setProto3StringField(this, 1, value);
-};
-
-
-/**
- * optional string amount = 2;
- * @return {string}
- */
-proto.cosmos.base.v1beta1.Coin.prototype.getAmount = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos.base.v1beta1.Coin} returns this
- */
-proto.cosmos.base.v1beta1.Coin.prototype.setAmount = function(value) {
- return jspb.Message.setProto3StringField(this, 2, value);
-};
-
-
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.cosmos.base.v1beta1.DecCoin.prototype.toObject = function(opt_includeInstance) {
- return proto.cosmos.base.v1beta1.DecCoin.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.cosmos.base.v1beta1.DecCoin} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.v1beta1.DecCoin.toObject = function(includeInstance, msg) {
- var f, obj = {
- denom: jspb.Message.getFieldWithDefault(msg, 1, ""),
- amount: jspb.Message.getFieldWithDefault(msg, 2, "")
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.cosmos.base.v1beta1.DecCoin}
- */
-proto.cosmos.base.v1beta1.DecCoin.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.cosmos.base.v1beta1.DecCoin;
- return proto.cosmos.base.v1beta1.DecCoin.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.cosmos.base.v1beta1.DecCoin} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.cosmos.base.v1beta1.DecCoin}
- */
-proto.cosmos.base.v1beta1.DecCoin.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setDenom(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setAmount(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.cosmos.base.v1beta1.DecCoin.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.cosmos.base.v1beta1.DecCoin.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.cosmos.base.v1beta1.DecCoin} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.v1beta1.DecCoin.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getDenom();
- if (f.length > 0) {
- writer.writeString(
- 1,
- f
- );
- }
- f = message.getAmount();
- if (f.length > 0) {
- writer.writeString(
- 2,
- f
- );
- }
-};
-
-
-/**
- * optional string denom = 1;
- * @return {string}
- */
-proto.cosmos.base.v1beta1.DecCoin.prototype.getDenom = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos.base.v1beta1.DecCoin} returns this
- */
-proto.cosmos.base.v1beta1.DecCoin.prototype.setDenom = function(value) {
- return jspb.Message.setProto3StringField(this, 1, value);
-};
-
-
-/**
- * optional string amount = 2;
- * @return {string}
- */
-proto.cosmos.base.v1beta1.DecCoin.prototype.getAmount = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos.base.v1beta1.DecCoin} returns this
- */
-proto.cosmos.base.v1beta1.DecCoin.prototype.setAmount = function(value) {
- return jspb.Message.setProto3StringField(this, 2, value);
-};
-
-
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.cosmos.base.v1beta1.IntProto.prototype.toObject = function(opt_includeInstance) {
- return proto.cosmos.base.v1beta1.IntProto.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.cosmos.base.v1beta1.IntProto} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.v1beta1.IntProto.toObject = function(includeInstance, msg) {
- var f, obj = {
- pb_int: jspb.Message.getFieldWithDefault(msg, 1, "")
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.cosmos.base.v1beta1.IntProto}
- */
-proto.cosmos.base.v1beta1.IntProto.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.cosmos.base.v1beta1.IntProto;
- return proto.cosmos.base.v1beta1.IntProto.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.cosmos.base.v1beta1.IntProto} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.cosmos.base.v1beta1.IntProto}
- */
-proto.cosmos.base.v1beta1.IntProto.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setInt(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.cosmos.base.v1beta1.IntProto.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.cosmos.base.v1beta1.IntProto.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.cosmos.base.v1beta1.IntProto} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.v1beta1.IntProto.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getInt();
- if (f.length > 0) {
- writer.writeString(
- 1,
- f
- );
- }
-};
-
-
-/**
- * optional string int = 1;
- * @return {string}
- */
-proto.cosmos.base.v1beta1.IntProto.prototype.getInt = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos.base.v1beta1.IntProto} returns this
- */
-proto.cosmos.base.v1beta1.IntProto.prototype.setInt = function(value) {
- return jspb.Message.setProto3StringField(this, 1, value);
-};
-
-
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.cosmos.base.v1beta1.DecProto.prototype.toObject = function(opt_includeInstance) {
- return proto.cosmos.base.v1beta1.DecProto.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.cosmos.base.v1beta1.DecProto} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.v1beta1.DecProto.toObject = function(includeInstance, msg) {
- var f, obj = {
- dec: jspb.Message.getFieldWithDefault(msg, 1, "")
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.cosmos.base.v1beta1.DecProto}
- */
-proto.cosmos.base.v1beta1.DecProto.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.cosmos.base.v1beta1.DecProto;
- return proto.cosmos.base.v1beta1.DecProto.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.cosmos.base.v1beta1.DecProto} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.cosmos.base.v1beta1.DecProto}
- */
-proto.cosmos.base.v1beta1.DecProto.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setDec(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.cosmos.base.v1beta1.DecProto.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.cosmos.base.v1beta1.DecProto.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.cosmos.base.v1beta1.DecProto} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos.base.v1beta1.DecProto.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getDec();
- if (f.length > 0) {
- writer.writeString(
- 1,
- f
- );
- }
-};
-
-
-/**
- * optional string dec = 1;
- * @return {string}
- */
-proto.cosmos.base.v1beta1.DecProto.prototype.getDec = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos.base.v1beta1.DecProto} returns this
- */
-proto.cosmos.base.v1beta1.DecProto.prototype.setDec = function(value) {
- return jspb.Message.setProto3StringField(this, 1, value);
-};
-
-
-goog.object.extend(exports, proto.cosmos.base.v1beta1);
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.d.ts
deleted file mode 100644
index 048461917a..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: cosmos.base.v1beta1
-// file: cosmos/base/v1beta1/coin.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.js
deleted file mode 100644
index 048461917a..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos/base/v1beta1/coin_pb_service.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: cosmos.base.v1beta1
-// file: cosmos/base/v1beta1/coin.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.d.ts
deleted file mode 100644
index 0ec909d179..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.d.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-// package: cosmos_proto
-// file: cosmos_proto/cosmos.proto
-
-import * as jspb from "google-protobuf";
-import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
-
-export class InterfaceDescriptor extends jspb.Message {
- getName(): string;
- setName(value: string): void;
-
- getDescription(): string;
- setDescription(value: string): void;
-
- serializeBinary(): Uint8Array;
- toObject(includeInstance?: boolean): InterfaceDescriptor.AsObject;
- static toObject(includeInstance: boolean, msg: InterfaceDescriptor): InterfaceDescriptor.AsObject;
- static extensions: {[key: number]: jspb.ExtensionFieldInfo};
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo};
- static serializeBinaryToWriter(message: InterfaceDescriptor, writer: jspb.BinaryWriter): void;
- static deserializeBinary(bytes: Uint8Array): InterfaceDescriptor;
- static deserializeBinaryFromReader(message: InterfaceDescriptor, reader: jspb.BinaryReader): InterfaceDescriptor;
-}
-
-export namespace InterfaceDescriptor {
- export type AsObject = {
- name: string,
- description: string,
- }
-}
-
-export class ScalarDescriptor extends jspb.Message {
- getName(): string;
- setName(value: string): void;
-
- getDescription(): string;
- setDescription(value: string): void;
-
- clearFieldTypeList(): void;
- getFieldTypeList(): Array;
- setFieldTypeList(value: Array): void;
- addFieldType(value: ScalarTypeMap[keyof ScalarTypeMap], index?: number): ScalarTypeMap[keyof ScalarTypeMap];
-
- getLegacyAminoEncoding(): string;
- setLegacyAminoEncoding(value: string): void;
-
- serializeBinary(): Uint8Array;
- toObject(includeInstance?: boolean): ScalarDescriptor.AsObject;
- static toObject(includeInstance: boolean, msg: ScalarDescriptor): ScalarDescriptor.AsObject;
- static extensions: {[key: number]: jspb.ExtensionFieldInfo};
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo};
- static serializeBinaryToWriter(message: ScalarDescriptor, writer: jspb.BinaryWriter): void;
- static deserializeBinary(bytes: Uint8Array): ScalarDescriptor;
- static deserializeBinaryFromReader(message: ScalarDescriptor, reader: jspb.BinaryReader): ScalarDescriptor;
-}
-
-export namespace ScalarDescriptor {
- export type AsObject = {
- name: string,
- description: string,
- fieldTypeList: Array,
- legacyAminoEncoding: string,
- }
-}
-
- export const implementsInterface: jspb.ExtensionFieldInfo;
-
- export const acceptsInterface: jspb.ExtensionFieldInfo;
-
- export const scalar: jspb.ExtensionFieldInfo;
-
- export const declareInterface: jspb.ExtensionFieldInfo;
-
- export const declareScalar: jspb.ExtensionFieldInfo;
-
-export interface ScalarTypeMap {
- SCALAR_TYPE_UNSPECIFIED: 0;
- SCALAR_TYPE_STRING: 1;
- SCALAR_TYPE_BYTES: 2;
-}
-
-export const ScalarType: ScalarTypeMap;
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.js
deleted file mode 100644
index 5ff235138a..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb.js
+++ /dev/null
@@ -1,607 +0,0 @@
-// source: cosmos_proto/cosmos.proto
-/**
- * @fileoverview
- * @enhanceable
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
-// GENERATED CODE -- DO NOT EDIT!
-
-var jspb = require('google-protobuf');
-var goog = jspb;
-var global = Function('return this')();
-
-var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
-goog.object.extend(proto, google_protobuf_descriptor_pb);
-goog.exportSymbol('proto.cosmos_proto.InterfaceDescriptor', null, global);
-goog.exportSymbol('proto.cosmos_proto.ScalarDescriptor', null, global);
-goog.exportSymbol('proto.cosmos_proto.ScalarType', null, global);
-goog.exportSymbol('proto.cosmos_proto.acceptsInterface', null, global);
-goog.exportSymbol('proto.cosmos_proto.declareInterfaceList', null, global);
-goog.exportSymbol('proto.cosmos_proto.declareScalarList', null, global);
-goog.exportSymbol('proto.cosmos_proto.implementsInterfaceList', null, global);
-goog.exportSymbol('proto.cosmos_proto.scalar', null, global);
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.cosmos_proto.InterfaceDescriptor = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
-};
-goog.inherits(proto.cosmos_proto.InterfaceDescriptor, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.cosmos_proto.InterfaceDescriptor.displayName = 'proto.cosmos_proto.InterfaceDescriptor';
-}
-/**
- * Generated by JsPbCodeGenerator.
- * @param {Array=} opt_data Optional initial data array, typically from a
- * server response, or constructed directly in Javascript. The array is used
- * in place and becomes part of the constructed object. It is not cloned.
- * If no data is provided, the constructed object will be empty, but still
- * valid.
- * @extends {jspb.Message}
- * @constructor
- */
-proto.cosmos_proto.ScalarDescriptor = function(opt_data) {
- jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos_proto.ScalarDescriptor.repeatedFields_, null);
-};
-goog.inherits(proto.cosmos_proto.ScalarDescriptor, jspb.Message);
-if (goog.DEBUG && !COMPILED) {
- /**
- * @public
- * @override
- */
- proto.cosmos_proto.ScalarDescriptor.displayName = 'proto.cosmos_proto.ScalarDescriptor';
-}
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.cosmos_proto.InterfaceDescriptor.prototype.toObject = function(opt_includeInstance) {
- return proto.cosmos_proto.InterfaceDescriptor.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.cosmos_proto.InterfaceDescriptor} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos_proto.InterfaceDescriptor.toObject = function(includeInstance, msg) {
- var f, obj = {
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
- description: jspb.Message.getFieldWithDefault(msg, 2, "")
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.cosmos_proto.InterfaceDescriptor}
- */
-proto.cosmos_proto.InterfaceDescriptor.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.cosmos_proto.InterfaceDescriptor;
- return proto.cosmos_proto.InterfaceDescriptor.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.cosmos_proto.InterfaceDescriptor} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.cosmos_proto.InterfaceDescriptor}
- */
-proto.cosmos_proto.InterfaceDescriptor.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setName(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setDescription(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.cosmos_proto.InterfaceDescriptor.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.cosmos_proto.InterfaceDescriptor.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.cosmos_proto.InterfaceDescriptor} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos_proto.InterfaceDescriptor.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getName();
- if (f.length > 0) {
- writer.writeString(
- 1,
- f
- );
- }
- f = message.getDescription();
- if (f.length > 0) {
- writer.writeString(
- 2,
- f
- );
- }
-};
-
-
-/**
- * optional string name = 1;
- * @return {string}
- */
-proto.cosmos_proto.InterfaceDescriptor.prototype.getName = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos_proto.InterfaceDescriptor} returns this
- */
-proto.cosmos_proto.InterfaceDescriptor.prototype.setName = function(value) {
- return jspb.Message.setProto3StringField(this, 1, value);
-};
-
-
-/**
- * optional string description = 2;
- * @return {string}
- */
-proto.cosmos_proto.InterfaceDescriptor.prototype.getDescription = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos_proto.InterfaceDescriptor} returns this
- */
-proto.cosmos_proto.InterfaceDescriptor.prototype.setDescription = function(value) {
- return jspb.Message.setProto3StringField(this, 2, value);
-};
-
-
-
-/**
- * List of repeated fields within this message type.
- * @private {!Array}
- * @const
- */
-proto.cosmos_proto.ScalarDescriptor.repeatedFields_ = [3];
-
-
-
-if (jspb.Message.GENERATE_TO_OBJECT) {
-/**
- * Creates an object representation of this proto.
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
- * Optional fields that are not set will be set to undefined.
- * To access a reserved field use, foo.pb_, eg, foo.pb_default.
- * For the list of reserved names please see:
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
- * JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @return {!Object}
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.toObject = function(opt_includeInstance) {
- return proto.cosmos_proto.ScalarDescriptor.toObject(opt_includeInstance, this);
-};
-
-
-/**
- * Static version of the {@see toObject} method.
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
- * the JSPB instance for transitional soy proto support:
- * http://goto/soy-param-migration
- * @param {!proto.cosmos_proto.ScalarDescriptor} msg The msg instance to transform.
- * @return {!Object}
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos_proto.ScalarDescriptor.toObject = function(includeInstance, msg) {
- var f, obj = {
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
- description: jspb.Message.getFieldWithDefault(msg, 2, ""),
- fieldTypeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
- legacyAminoEncoding: jspb.Message.getFieldWithDefault(msg, 4, "")
- };
-
- if (includeInstance) {
- obj.$jspbMessageInstance = msg;
- }
- return obj;
-};
-}
-
-
-/**
- * Deserializes binary data (in protobuf wire format).
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
- * @return {!proto.cosmos_proto.ScalarDescriptor}
- */
-proto.cosmos_proto.ScalarDescriptor.deserializeBinary = function(bytes) {
- var reader = new jspb.BinaryReader(bytes);
- var msg = new proto.cosmos_proto.ScalarDescriptor;
- return proto.cosmos_proto.ScalarDescriptor.deserializeBinaryFromReader(msg, reader);
-};
-
-
-/**
- * Deserializes binary data (in protobuf wire format) from the
- * given reader into the given message object.
- * @param {!proto.cosmos_proto.ScalarDescriptor} msg The message object to deserialize into.
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
- * @return {!proto.cosmos_proto.ScalarDescriptor}
- */
-proto.cosmos_proto.ScalarDescriptor.deserializeBinaryFromReader = function(msg, reader) {
- while (reader.nextField()) {
- if (reader.isEndGroup()) {
- break;
- }
- var field = reader.getFieldNumber();
- switch (field) {
- case 1:
- var value = /** @type {string} */ (reader.readString());
- msg.setName(value);
- break;
- case 2:
- var value = /** @type {string} */ (reader.readString());
- msg.setDescription(value);
- break;
- case 3:
- var value = /** @type {!Array} */ (reader.readPackedEnum());
- msg.setFieldTypeList(value);
- break;
- case 4:
- var value = /** @type {string} */ (reader.readString());
- msg.setLegacyAminoEncoding(value);
- break;
- default:
- reader.skipField();
- break;
- }
- }
- return msg;
-};
-
-
-/**
- * Serializes the message to binary data (in protobuf wire format).
- * @return {!Uint8Array}
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.serializeBinary = function() {
- var writer = new jspb.BinaryWriter();
- proto.cosmos_proto.ScalarDescriptor.serializeBinaryToWriter(this, writer);
- return writer.getResultBuffer();
-};
-
-
-/**
- * Serializes the given message to binary data (in protobuf wire
- * format), writing to the given BinaryWriter.
- * @param {!proto.cosmos_proto.ScalarDescriptor} message
- * @param {!jspb.BinaryWriter} writer
- * @suppress {unusedLocalVariables} f is only used for nested messages
- */
-proto.cosmos_proto.ScalarDescriptor.serializeBinaryToWriter = function(message, writer) {
- var f = undefined;
- f = message.getName();
- if (f.length > 0) {
- writer.writeString(
- 1,
- f
- );
- }
- f = message.getDescription();
- if (f.length > 0) {
- writer.writeString(
- 2,
- f
- );
- }
- f = message.getFieldTypeList();
- if (f.length > 0) {
- writer.writePackedEnum(
- 3,
- f
- );
- }
- f = message.getLegacyAminoEncoding();
- if (f.length > 0) {
- writer.writeString(
- 4,
- f
- );
- }
-};
-
-
-/**
- * optional string name = 1;
- * @return {string}
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.getName = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos_proto.ScalarDescriptor} returns this
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.setName = function(value) {
- return jspb.Message.setProto3StringField(this, 1, value);
-};
-
-
-/**
- * optional string description = 2;
- * @return {string}
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.getDescription = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos_proto.ScalarDescriptor} returns this
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.setDescription = function(value) {
- return jspb.Message.setProto3StringField(this, 2, value);
-};
-
-
-/**
- * repeated ScalarType field_type = 3;
- * @return {!Array}
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.getFieldTypeList = function() {
- return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3));
-};
-
-
-/**
- * @param {!Array} value
- * @return {!proto.cosmos_proto.ScalarDescriptor} returns this
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.setFieldTypeList = function(value) {
- return jspb.Message.setField(this, 3, value || []);
-};
-
-
-/**
- * @param {!proto.cosmos_proto.ScalarType} value
- * @param {number=} opt_index
- * @return {!proto.cosmos_proto.ScalarDescriptor} returns this
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.addFieldType = function(value, opt_index) {
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
-};
-
-
-/**
- * Clears the list making it empty but non-null.
- * @return {!proto.cosmos_proto.ScalarDescriptor} returns this
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.clearFieldTypeList = function() {
- return this.setFieldTypeList([]);
-};
-
-
-/**
- * optional string legacy_amino_encoding = 4;
- * @return {string}
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.getLegacyAminoEncoding = function() {
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
-};
-
-
-/**
- * @param {string} value
- * @return {!proto.cosmos_proto.ScalarDescriptor} returns this
- */
-proto.cosmos_proto.ScalarDescriptor.prototype.setLegacyAminoEncoding = function(value) {
- return jspb.Message.setProto3StringField(this, 4, value);
-};
-
-
-/**
- * @enum {number}
- */
-proto.cosmos_proto.ScalarType = {
- SCALAR_TYPE_UNSPECIFIED: 0,
- SCALAR_TYPE_STRING: 1,
- SCALAR_TYPE_BYTES: 2
-};
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `implementsInterfaceList`.
- * @type {!jspb.ExtensionFieldInfo>}
- */
-proto.cosmos_proto.implementsInterfaceList = new jspb.ExtensionFieldInfo(
- 93001,
- {implementsInterfaceList: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 1);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[93001] = new jspb.ExtensionFieldBinaryInfo(
- proto.cosmos_proto.implementsInterfaceList,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeRepeatedString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[93001] = proto.cosmos_proto.implementsInterfaceList;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `acceptsInterface`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.cosmos_proto.acceptsInterface = new jspb.ExtensionFieldInfo(
- 93001,
- {acceptsInterface: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[93001] = new jspb.ExtensionFieldBinaryInfo(
- proto.cosmos_proto.acceptsInterface,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[93001] = proto.cosmos_proto.acceptsInterface;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `scalar`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.cosmos_proto.scalar = new jspb.ExtensionFieldInfo(
- 93002,
- {scalar: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[93002] = new jspb.ExtensionFieldBinaryInfo(
- proto.cosmos_proto.scalar,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[93002] = proto.cosmos_proto.scalar;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `declareInterfaceList`.
- * @type {!jspb.ExtensionFieldInfo>}
- */
-proto.cosmos_proto.declareInterfaceList = new jspb.ExtensionFieldInfo(
- 793021,
- {declareInterfaceList: 0},
- proto.cosmos_proto.InterfaceDescriptor,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- proto.cosmos_proto.InterfaceDescriptor.toObject),
- 1);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[793021] = new jspb.ExtensionFieldBinaryInfo(
- proto.cosmos_proto.declareInterfaceList,
- jspb.BinaryReader.prototype.readMessage,
- jspb.BinaryWriter.prototype.writeRepeatedMessage,
- proto.cosmos_proto.InterfaceDescriptor.serializeBinaryToWriter,
- proto.cosmos_proto.InterfaceDescriptor.deserializeBinaryFromReader,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[793021] = proto.cosmos_proto.declareInterfaceList;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `declareScalarList`.
- * @type {!jspb.ExtensionFieldInfo>}
- */
-proto.cosmos_proto.declareScalarList = new jspb.ExtensionFieldInfo(
- 793022,
- {declareScalarList: 0},
- proto.cosmos_proto.ScalarDescriptor,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- proto.cosmos_proto.ScalarDescriptor.toObject),
- 1);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[793022] = new jspb.ExtensionFieldBinaryInfo(
- proto.cosmos_proto.declareScalarList,
- jspb.BinaryReader.prototype.readMessage,
- jspb.BinaryWriter.prototype.writeRepeatedMessage,
- proto.cosmos_proto.ScalarDescriptor.serializeBinaryToWriter,
- proto.cosmos_proto.ScalarDescriptor.deserializeBinaryFromReader,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[793022] = proto.cosmos_proto.declareScalarList;
-
-goog.object.extend(exports, proto.cosmos_proto);
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.d.ts
deleted file mode 100644
index fdb113dd23..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: cosmos_proto
-// file: cosmos_proto/cosmos.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.js
deleted file mode 100644
index fdb113dd23..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/cosmos_proto/cosmos_pb_service.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: cosmos_proto
-// file: cosmos_proto/cosmos.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.d.ts
deleted file mode 100644
index b6baa4d49f..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.d.ts
+++ /dev/null
@@ -1,160 +0,0 @@
-// package: gogoproto
-// file: gogoproto/gogo.proto
-
-import * as jspb from "google-protobuf";
-import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
-
- export const goprotoEnumPrefix: jspb.ExtensionFieldInfo;
-
- export const goprotoEnumStringer: jspb.ExtensionFieldInfo;
-
- export const enumStringer: jspb.ExtensionFieldInfo;
-
- export const enumCustomname: jspb.ExtensionFieldInfo;
-
- export const enumdecl: jspb.ExtensionFieldInfo;
-
- export const enumvalueCustomname: jspb.ExtensionFieldInfo;
-
- export const goprotoGettersAll: jspb.ExtensionFieldInfo;
-
- export const goprotoEnumPrefixAll: jspb.ExtensionFieldInfo;
-
- export const goprotoStringerAll: jspb.ExtensionFieldInfo;
-
- export const verboseEqualAll: jspb.ExtensionFieldInfo;
-
- export const faceAll: jspb.ExtensionFieldInfo;
-
- export const gostringAll: jspb.ExtensionFieldInfo;
-
- export const populateAll: jspb.ExtensionFieldInfo;
-
- export const stringerAll: jspb.ExtensionFieldInfo;
-
- export const onlyoneAll: jspb.ExtensionFieldInfo;
-
- export const equalAll: jspb.ExtensionFieldInfo;
-
- export const descriptionAll: jspb.ExtensionFieldInfo;
-
- export const testgenAll: jspb.ExtensionFieldInfo;
-
- export const benchgenAll: jspb.ExtensionFieldInfo;
-
- export const marshalerAll: jspb.ExtensionFieldInfo;
-
- export const unmarshalerAll: jspb.ExtensionFieldInfo;
-
- export const stableMarshalerAll: jspb.ExtensionFieldInfo;
-
- export const sizerAll: jspb.ExtensionFieldInfo;
-
- export const goprotoEnumStringerAll: jspb.ExtensionFieldInfo;
-
- export const enumStringerAll: jspb.ExtensionFieldInfo;
-
- export const unsafeMarshalerAll: jspb.ExtensionFieldInfo;
-
- export const unsafeUnmarshalerAll: jspb.ExtensionFieldInfo;
-
- export const goprotoExtensionsMapAll: jspb.ExtensionFieldInfo;
-
- export const goprotoUnrecognizedAll: jspb.ExtensionFieldInfo;
-
- export const gogoprotoImport: jspb.ExtensionFieldInfo;
-
- export const protosizerAll: jspb.ExtensionFieldInfo;
-
- export const compareAll: jspb.ExtensionFieldInfo;
-
- export const typedeclAll: jspb.ExtensionFieldInfo;
-
- export const enumdeclAll: jspb.ExtensionFieldInfo;
-
- export const goprotoRegistration: jspb.ExtensionFieldInfo;
-
- export const messagenameAll: jspb.ExtensionFieldInfo;
-
- export const goprotoSizecacheAll: jspb.ExtensionFieldInfo;
-
- export const goprotoUnkeyedAll: jspb.ExtensionFieldInfo;
-
- export const goprotoGetters: jspb.ExtensionFieldInfo;
-
- export const goprotoStringer: jspb.ExtensionFieldInfo;
-
- export const verboseEqual: jspb.ExtensionFieldInfo;
-
- export const face: jspb.ExtensionFieldInfo;
-
- export const gostring: jspb.ExtensionFieldInfo;
-
- export const populate: jspb.ExtensionFieldInfo;
-
- export const stringer: jspb.ExtensionFieldInfo;
-
- export const onlyone: jspb.ExtensionFieldInfo;
-
- export const equal: jspb.ExtensionFieldInfo;
-
- export const description: jspb.ExtensionFieldInfo;
-
- export const testgen: jspb.ExtensionFieldInfo;
-
- export const benchgen: jspb.ExtensionFieldInfo;
-
- export const marshaler: jspb.ExtensionFieldInfo;
-
- export const unmarshaler: jspb.ExtensionFieldInfo;
-
- export const stableMarshaler: jspb.ExtensionFieldInfo;
-
- export const sizer: jspb.ExtensionFieldInfo;
-
- export const unsafeMarshaler: jspb.ExtensionFieldInfo;
-
- export const unsafeUnmarshaler: jspb.ExtensionFieldInfo;
-
- export const goprotoExtensionsMap: jspb.ExtensionFieldInfo;
-
- export const goprotoUnrecognized: jspb.ExtensionFieldInfo;
-
- export const protosizer: jspb.ExtensionFieldInfo;
-
- export const compare: jspb.ExtensionFieldInfo;
-
- export const typedecl: jspb.ExtensionFieldInfo;
-
- export const messagename: jspb.ExtensionFieldInfo;
-
- export const goprotoSizecache: jspb.ExtensionFieldInfo;
-
- export const goprotoUnkeyed: jspb.ExtensionFieldInfo;
-
- export const nullable: jspb.ExtensionFieldInfo;
-
- export const embed: jspb.ExtensionFieldInfo;
-
- export const customtype: jspb.ExtensionFieldInfo;
-
- export const customname: jspb.ExtensionFieldInfo;
-
- export const jsontag: jspb.ExtensionFieldInfo;
-
- export const moretags: jspb.ExtensionFieldInfo;
-
- export const casttype: jspb.ExtensionFieldInfo;
-
- export const castkey: jspb.ExtensionFieldInfo;
-
- export const castvalue: jspb.ExtensionFieldInfo;
-
- export const stdtime: jspb.ExtensionFieldInfo;
-
- export const stdduration: jspb.ExtensionFieldInfo;
-
- export const wktpointer: jspb.ExtensionFieldInfo;
-
- export const castrepeated: jspb.ExtensionFieldInfo;
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.js
deleted file mode 100644
index 52865d8a14..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb.js
+++ /dev/null
@@ -1,2019 +0,0 @@
-// source: gogoproto/gogo.proto
-/**
- * @fileoverview
- * @enhanceable
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
-// GENERATED CODE -- DO NOT EDIT!
-
-var jspb = require('google-protobuf');
-var goog = jspb;
-var global = Function('return this')();
-
-var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
-goog.object.extend(proto, google_protobuf_descriptor_pb);
-goog.exportSymbol('proto.gogoproto.benchgen', null, global);
-goog.exportSymbol('proto.gogoproto.benchgenAll', null, global);
-goog.exportSymbol('proto.gogoproto.castkey', null, global);
-goog.exportSymbol('proto.gogoproto.castrepeated', null, global);
-goog.exportSymbol('proto.gogoproto.casttype', null, global);
-goog.exportSymbol('proto.gogoproto.castvalue', null, global);
-goog.exportSymbol('proto.gogoproto.compare', null, global);
-goog.exportSymbol('proto.gogoproto.compareAll', null, global);
-goog.exportSymbol('proto.gogoproto.customname', null, global);
-goog.exportSymbol('proto.gogoproto.customtype', null, global);
-goog.exportSymbol('proto.gogoproto.description', null, global);
-goog.exportSymbol('proto.gogoproto.descriptionAll', null, global);
-goog.exportSymbol('proto.gogoproto.embed', null, global);
-goog.exportSymbol('proto.gogoproto.enumCustomname', null, global);
-goog.exportSymbol('proto.gogoproto.enumStringer', null, global);
-goog.exportSymbol('proto.gogoproto.enumStringerAll', null, global);
-goog.exportSymbol('proto.gogoproto.enumdecl', null, global);
-goog.exportSymbol('proto.gogoproto.enumdeclAll', null, global);
-goog.exportSymbol('proto.gogoproto.enumvalueCustomname', null, global);
-goog.exportSymbol('proto.gogoproto.equal', null, global);
-goog.exportSymbol('proto.gogoproto.equalAll', null, global);
-goog.exportSymbol('proto.gogoproto.face', null, global);
-goog.exportSymbol('proto.gogoproto.faceAll', null, global);
-goog.exportSymbol('proto.gogoproto.gogoprotoImport', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoEnumPrefix', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoEnumPrefixAll', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoEnumStringer', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoEnumStringerAll', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoExtensionsMap', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoExtensionsMapAll', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoGetters', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoGettersAll', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoRegistration', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoSizecache', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoSizecacheAll', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoStringer', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoStringerAll', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoUnkeyed', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoUnkeyedAll', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoUnrecognized', null, global);
-goog.exportSymbol('proto.gogoproto.goprotoUnrecognizedAll', null, global);
-goog.exportSymbol('proto.gogoproto.gostring', null, global);
-goog.exportSymbol('proto.gogoproto.gostringAll', null, global);
-goog.exportSymbol('proto.gogoproto.jsontag', null, global);
-goog.exportSymbol('proto.gogoproto.marshaler', null, global);
-goog.exportSymbol('proto.gogoproto.marshalerAll', null, global);
-goog.exportSymbol('proto.gogoproto.messagename', null, global);
-goog.exportSymbol('proto.gogoproto.messagenameAll', null, global);
-goog.exportSymbol('proto.gogoproto.moretags', null, global);
-goog.exportSymbol('proto.gogoproto.nullable', null, global);
-goog.exportSymbol('proto.gogoproto.onlyone', null, global);
-goog.exportSymbol('proto.gogoproto.onlyoneAll', null, global);
-goog.exportSymbol('proto.gogoproto.populate', null, global);
-goog.exportSymbol('proto.gogoproto.populateAll', null, global);
-goog.exportSymbol('proto.gogoproto.protosizer', null, global);
-goog.exportSymbol('proto.gogoproto.protosizerAll', null, global);
-goog.exportSymbol('proto.gogoproto.sizer', null, global);
-goog.exportSymbol('proto.gogoproto.sizerAll', null, global);
-goog.exportSymbol('proto.gogoproto.stableMarshaler', null, global);
-goog.exportSymbol('proto.gogoproto.stableMarshalerAll', null, global);
-goog.exportSymbol('proto.gogoproto.stdduration', null, global);
-goog.exportSymbol('proto.gogoproto.stdtime', null, global);
-goog.exportSymbol('proto.gogoproto.stringer', null, global);
-goog.exportSymbol('proto.gogoproto.stringerAll', null, global);
-goog.exportSymbol('proto.gogoproto.testgen', null, global);
-goog.exportSymbol('proto.gogoproto.testgenAll', null, global);
-goog.exportSymbol('proto.gogoproto.typedecl', null, global);
-goog.exportSymbol('proto.gogoproto.typedeclAll', null, global);
-goog.exportSymbol('proto.gogoproto.unmarshaler', null, global);
-goog.exportSymbol('proto.gogoproto.unmarshalerAll', null, global);
-goog.exportSymbol('proto.gogoproto.unsafeMarshaler', null, global);
-goog.exportSymbol('proto.gogoproto.unsafeMarshalerAll', null, global);
-goog.exportSymbol('proto.gogoproto.unsafeUnmarshaler', null, global);
-goog.exportSymbol('proto.gogoproto.unsafeUnmarshalerAll', null, global);
-goog.exportSymbol('proto.gogoproto.verboseEqual', null, global);
-goog.exportSymbol('proto.gogoproto.verboseEqualAll', null, global);
-goog.exportSymbol('proto.gogoproto.wktpointer', null, global);
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoEnumPrefix`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoEnumPrefix = new jspb.ExtensionFieldInfo(
- 62001,
- {goprotoEnumPrefix: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62001] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoEnumPrefix,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.EnumOptions.extensions[62001] = proto.gogoproto.goprotoEnumPrefix;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoEnumStringer`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoEnumStringer = new jspb.ExtensionFieldInfo(
- 62021,
- {goprotoEnumStringer: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62021] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoEnumStringer,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.EnumOptions.extensions[62021] = proto.gogoproto.goprotoEnumStringer;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `enumStringer`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.enumStringer = new jspb.ExtensionFieldInfo(
- 62022,
- {enumStringer: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62022] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.enumStringer,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.EnumOptions.extensions[62022] = proto.gogoproto.enumStringer;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `enumCustomname`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.enumCustomname = new jspb.ExtensionFieldInfo(
- 62023,
- {enumCustomname: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62023] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.enumCustomname,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.EnumOptions.extensions[62023] = proto.gogoproto.enumCustomname;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `enumdecl`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.enumdecl = new jspb.ExtensionFieldInfo(
- 62024,
- {enumdecl: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.EnumOptions.extensionsBinary[62024] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.enumdecl,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.EnumOptions.extensions[62024] = proto.gogoproto.enumdecl;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `enumvalueCustomname`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.enumvalueCustomname = new jspb.ExtensionFieldInfo(
- 66001,
- {enumvalueCustomname: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.EnumValueOptions.extensionsBinary[66001] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.enumvalueCustomname,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.EnumValueOptions.extensions[66001] = proto.gogoproto.enumvalueCustomname;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoGettersAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoGettersAll = new jspb.ExtensionFieldInfo(
- 63001,
- {goprotoGettersAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63001] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoGettersAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63001] = proto.gogoproto.goprotoGettersAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoEnumPrefixAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoEnumPrefixAll = new jspb.ExtensionFieldInfo(
- 63002,
- {goprotoEnumPrefixAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63002] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoEnumPrefixAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63002] = proto.gogoproto.goprotoEnumPrefixAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoStringerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoStringerAll = new jspb.ExtensionFieldInfo(
- 63003,
- {goprotoStringerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63003] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoStringerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63003] = proto.gogoproto.goprotoStringerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `verboseEqualAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.verboseEqualAll = new jspb.ExtensionFieldInfo(
- 63004,
- {verboseEqualAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63004] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.verboseEqualAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63004] = proto.gogoproto.verboseEqualAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `faceAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.faceAll = new jspb.ExtensionFieldInfo(
- 63005,
- {faceAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63005] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.faceAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63005] = proto.gogoproto.faceAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `gostringAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.gostringAll = new jspb.ExtensionFieldInfo(
- 63006,
- {gostringAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63006] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.gostringAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63006] = proto.gogoproto.gostringAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `populateAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.populateAll = new jspb.ExtensionFieldInfo(
- 63007,
- {populateAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63007] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.populateAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63007] = proto.gogoproto.populateAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `stringerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.stringerAll = new jspb.ExtensionFieldInfo(
- 63008,
- {stringerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63008] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.stringerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63008] = proto.gogoproto.stringerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `onlyoneAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.onlyoneAll = new jspb.ExtensionFieldInfo(
- 63009,
- {onlyoneAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63009] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.onlyoneAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63009] = proto.gogoproto.onlyoneAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `equalAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.equalAll = new jspb.ExtensionFieldInfo(
- 63013,
- {equalAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63013] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.equalAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63013] = proto.gogoproto.equalAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `descriptionAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.descriptionAll = new jspb.ExtensionFieldInfo(
- 63014,
- {descriptionAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63014] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.descriptionAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63014] = proto.gogoproto.descriptionAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `testgenAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.testgenAll = new jspb.ExtensionFieldInfo(
- 63015,
- {testgenAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63015] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.testgenAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63015] = proto.gogoproto.testgenAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `benchgenAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.benchgenAll = new jspb.ExtensionFieldInfo(
- 63016,
- {benchgenAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63016] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.benchgenAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63016] = proto.gogoproto.benchgenAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `marshalerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.marshalerAll = new jspb.ExtensionFieldInfo(
- 63017,
- {marshalerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63017] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.marshalerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63017] = proto.gogoproto.marshalerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `unmarshalerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.unmarshalerAll = new jspb.ExtensionFieldInfo(
- 63018,
- {unmarshalerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63018] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.unmarshalerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63018] = proto.gogoproto.unmarshalerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `stableMarshalerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.stableMarshalerAll = new jspb.ExtensionFieldInfo(
- 63019,
- {stableMarshalerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63019] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.stableMarshalerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63019] = proto.gogoproto.stableMarshalerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `sizerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.sizerAll = new jspb.ExtensionFieldInfo(
- 63020,
- {sizerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63020] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.sizerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63020] = proto.gogoproto.sizerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoEnumStringerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoEnumStringerAll = new jspb.ExtensionFieldInfo(
- 63021,
- {goprotoEnumStringerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63021] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoEnumStringerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63021] = proto.gogoproto.goprotoEnumStringerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `enumStringerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.enumStringerAll = new jspb.ExtensionFieldInfo(
- 63022,
- {enumStringerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63022] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.enumStringerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63022] = proto.gogoproto.enumStringerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `unsafeMarshalerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.unsafeMarshalerAll = new jspb.ExtensionFieldInfo(
- 63023,
- {unsafeMarshalerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63023] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.unsafeMarshalerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63023] = proto.gogoproto.unsafeMarshalerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `unsafeUnmarshalerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.unsafeUnmarshalerAll = new jspb.ExtensionFieldInfo(
- 63024,
- {unsafeUnmarshalerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63024] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.unsafeUnmarshalerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63024] = proto.gogoproto.unsafeUnmarshalerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoExtensionsMapAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoExtensionsMapAll = new jspb.ExtensionFieldInfo(
- 63025,
- {goprotoExtensionsMapAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63025] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoExtensionsMapAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63025] = proto.gogoproto.goprotoExtensionsMapAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoUnrecognizedAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoUnrecognizedAll = new jspb.ExtensionFieldInfo(
- 63026,
- {goprotoUnrecognizedAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63026] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoUnrecognizedAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63026] = proto.gogoproto.goprotoUnrecognizedAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `gogoprotoImport`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.gogoprotoImport = new jspb.ExtensionFieldInfo(
- 63027,
- {gogoprotoImport: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63027] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.gogoprotoImport,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63027] = proto.gogoproto.gogoprotoImport;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `protosizerAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.protosizerAll = new jspb.ExtensionFieldInfo(
- 63028,
- {protosizerAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63028] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.protosizerAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63028] = proto.gogoproto.protosizerAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `compareAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.compareAll = new jspb.ExtensionFieldInfo(
- 63029,
- {compareAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63029] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.compareAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63029] = proto.gogoproto.compareAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `typedeclAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.typedeclAll = new jspb.ExtensionFieldInfo(
- 63030,
- {typedeclAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63030] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.typedeclAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63030] = proto.gogoproto.typedeclAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `enumdeclAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.enumdeclAll = new jspb.ExtensionFieldInfo(
- 63031,
- {enumdeclAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63031] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.enumdeclAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63031] = proto.gogoproto.enumdeclAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoRegistration`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoRegistration = new jspb.ExtensionFieldInfo(
- 63032,
- {goprotoRegistration: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63032] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoRegistration,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63032] = proto.gogoproto.goprotoRegistration;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `messagenameAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.messagenameAll = new jspb.ExtensionFieldInfo(
- 63033,
- {messagenameAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63033] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.messagenameAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63033] = proto.gogoproto.messagenameAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoSizecacheAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoSizecacheAll = new jspb.ExtensionFieldInfo(
- 63034,
- {goprotoSizecacheAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63034] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoSizecacheAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63034] = proto.gogoproto.goprotoSizecacheAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoUnkeyedAll`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoUnkeyedAll = new jspb.ExtensionFieldInfo(
- 63035,
- {goprotoUnkeyedAll: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FileOptions.extensionsBinary[63035] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoUnkeyedAll,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FileOptions.extensions[63035] = proto.gogoproto.goprotoUnkeyedAll;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoGetters`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoGetters = new jspb.ExtensionFieldInfo(
- 64001,
- {goprotoGetters: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64001] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoGetters,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64001] = proto.gogoproto.goprotoGetters;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoStringer`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoStringer = new jspb.ExtensionFieldInfo(
- 64003,
- {goprotoStringer: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64003] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoStringer,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64003] = proto.gogoproto.goprotoStringer;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `verboseEqual`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.verboseEqual = new jspb.ExtensionFieldInfo(
- 64004,
- {verboseEqual: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64004] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.verboseEqual,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64004] = proto.gogoproto.verboseEqual;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `face`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.face = new jspb.ExtensionFieldInfo(
- 64005,
- {face: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64005] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.face,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64005] = proto.gogoproto.face;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `gostring`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.gostring = new jspb.ExtensionFieldInfo(
- 64006,
- {gostring: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64006] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.gostring,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64006] = proto.gogoproto.gostring;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `populate`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.populate = new jspb.ExtensionFieldInfo(
- 64007,
- {populate: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64007] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.populate,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64007] = proto.gogoproto.populate;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `stringer`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.stringer = new jspb.ExtensionFieldInfo(
- 67008,
- {stringer: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[67008] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.stringer,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[67008] = proto.gogoproto.stringer;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `onlyone`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.onlyone = new jspb.ExtensionFieldInfo(
- 64009,
- {onlyone: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64009] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.onlyone,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64009] = proto.gogoproto.onlyone;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `equal`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.equal = new jspb.ExtensionFieldInfo(
- 64013,
- {equal: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64013] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.equal,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64013] = proto.gogoproto.equal;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `description`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.description = new jspb.ExtensionFieldInfo(
- 64014,
- {description: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64014] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.description,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64014] = proto.gogoproto.description;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `testgen`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.testgen = new jspb.ExtensionFieldInfo(
- 64015,
- {testgen: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64015] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.testgen,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64015] = proto.gogoproto.testgen;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `benchgen`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.benchgen = new jspb.ExtensionFieldInfo(
- 64016,
- {benchgen: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64016] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.benchgen,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64016] = proto.gogoproto.benchgen;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `marshaler`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.marshaler = new jspb.ExtensionFieldInfo(
- 64017,
- {marshaler: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64017] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.marshaler,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64017] = proto.gogoproto.marshaler;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `unmarshaler`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.unmarshaler = new jspb.ExtensionFieldInfo(
- 64018,
- {unmarshaler: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64018] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.unmarshaler,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64018] = proto.gogoproto.unmarshaler;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `stableMarshaler`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.stableMarshaler = new jspb.ExtensionFieldInfo(
- 64019,
- {stableMarshaler: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64019] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.stableMarshaler,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64019] = proto.gogoproto.stableMarshaler;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `sizer`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.sizer = new jspb.ExtensionFieldInfo(
- 64020,
- {sizer: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64020] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.sizer,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64020] = proto.gogoproto.sizer;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `unsafeMarshaler`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.unsafeMarshaler = new jspb.ExtensionFieldInfo(
- 64023,
- {unsafeMarshaler: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64023] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.unsafeMarshaler,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64023] = proto.gogoproto.unsafeMarshaler;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `unsafeUnmarshaler`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.unsafeUnmarshaler = new jspb.ExtensionFieldInfo(
- 64024,
- {unsafeUnmarshaler: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64024] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.unsafeUnmarshaler,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64024] = proto.gogoproto.unsafeUnmarshaler;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoExtensionsMap`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoExtensionsMap = new jspb.ExtensionFieldInfo(
- 64025,
- {goprotoExtensionsMap: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64025] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoExtensionsMap,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64025] = proto.gogoproto.goprotoExtensionsMap;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoUnrecognized`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoUnrecognized = new jspb.ExtensionFieldInfo(
- 64026,
- {goprotoUnrecognized: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64026] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoUnrecognized,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64026] = proto.gogoproto.goprotoUnrecognized;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `protosizer`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.protosizer = new jspb.ExtensionFieldInfo(
- 64028,
- {protosizer: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64028] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.protosizer,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64028] = proto.gogoproto.protosizer;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `compare`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.compare = new jspb.ExtensionFieldInfo(
- 64029,
- {compare: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64029] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.compare,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64029] = proto.gogoproto.compare;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `typedecl`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.typedecl = new jspb.ExtensionFieldInfo(
- 64030,
- {typedecl: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64030] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.typedecl,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64030] = proto.gogoproto.typedecl;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `messagename`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.messagename = new jspb.ExtensionFieldInfo(
- 64033,
- {messagename: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64033] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.messagename,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64033] = proto.gogoproto.messagename;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoSizecache`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoSizecache = new jspb.ExtensionFieldInfo(
- 64034,
- {goprotoSizecache: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64034] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoSizecache,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64034] = proto.gogoproto.goprotoSizecache;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `goprotoUnkeyed`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.goprotoUnkeyed = new jspb.ExtensionFieldInfo(
- 64035,
- {goprotoUnkeyed: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.MessageOptions.extensionsBinary[64035] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.goprotoUnkeyed,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MessageOptions.extensions[64035] = proto.gogoproto.goprotoUnkeyed;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `nullable`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.nullable = new jspb.ExtensionFieldInfo(
- 65001,
- {nullable: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65001] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.nullable,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65001] = proto.gogoproto.nullable;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `embed`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.embed = new jspb.ExtensionFieldInfo(
- 65002,
- {embed: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65002] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.embed,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65002] = proto.gogoproto.embed;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `customtype`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.customtype = new jspb.ExtensionFieldInfo(
- 65003,
- {customtype: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65003] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.customtype,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65003] = proto.gogoproto.customtype;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `customname`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.customname = new jspb.ExtensionFieldInfo(
- 65004,
- {customname: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65004] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.customname,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65004] = proto.gogoproto.customname;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `jsontag`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.jsontag = new jspb.ExtensionFieldInfo(
- 65005,
- {jsontag: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65005] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.jsontag,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65005] = proto.gogoproto.jsontag;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `moretags`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.moretags = new jspb.ExtensionFieldInfo(
- 65006,
- {moretags: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65006] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.moretags,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65006] = proto.gogoproto.moretags;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `casttype`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.casttype = new jspb.ExtensionFieldInfo(
- 65007,
- {casttype: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65007] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.casttype,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65007] = proto.gogoproto.casttype;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `castkey`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.castkey = new jspb.ExtensionFieldInfo(
- 65008,
- {castkey: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65008] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.castkey,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65008] = proto.gogoproto.castkey;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `castvalue`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.castvalue = new jspb.ExtensionFieldInfo(
- 65009,
- {castvalue: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65009] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.castvalue,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65009] = proto.gogoproto.castvalue;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `stdtime`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.stdtime = new jspb.ExtensionFieldInfo(
- 65010,
- {stdtime: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65010] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.stdtime,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65010] = proto.gogoproto.stdtime;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `stdduration`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.stdduration = new jspb.ExtensionFieldInfo(
- 65011,
- {stdduration: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65011] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.stdduration,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65011] = proto.gogoproto.stdduration;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `wktpointer`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.wktpointer = new jspb.ExtensionFieldInfo(
- 65012,
- {wktpointer: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65012] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.wktpointer,
- jspb.BinaryReader.prototype.readBool,
- jspb.BinaryWriter.prototype.writeBool,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65012] = proto.gogoproto.wktpointer;
-
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `castrepeated`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.gogoproto.castrepeated = new jspb.ExtensionFieldInfo(
- 65013,
- {castrepeated: 0},
- null,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- null),
- 0);
-
-google_protobuf_descriptor_pb.FieldOptions.extensionsBinary[65013] = new jspb.ExtensionFieldBinaryInfo(
- proto.gogoproto.castrepeated,
- jspb.BinaryReader.prototype.readString,
- jspb.BinaryWriter.prototype.writeString,
- undefined,
- undefined,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.FieldOptions.extensions[65013] = proto.gogoproto.castrepeated;
-
-goog.object.extend(exports, proto.gogoproto);
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.d.ts
deleted file mode 100644
index 1d20e5a457..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: gogoproto
-// file: gogoproto/gogo.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.js
deleted file mode 100644
index 1d20e5a457..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/gogoproto/gogo_pb_service.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: gogoproto
-// file: gogoproto/gogo.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.d.ts
deleted file mode 100644
index adf3b88c38..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.d.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-// package: google.api
-// file: google/api/annotations.proto
-
-import * as jspb from "google-protobuf";
-import * as google_api_http_pb from "../../google/api/http_pb";
-import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb";
-
- export const http: jspb.ExtensionFieldInfo;
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.js b/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.js
deleted file mode 100644
index 2341dbed22..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// source: google/api/annotations.proto
-/**
- * @fileoverview
- * @enhanceable
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
- * field starts with 'MSG_' and isn't a translatable message.
- * @public
- */
-// GENERATED CODE -- DO NOT EDIT!
-
-var jspb = require('google-protobuf');
-var goog = jspb;
-var global = Function('return this')();
-
-var google_api_http_pb = require('../../google/api/http_pb.js');
-goog.object.extend(proto, google_api_http_pb);
-var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js');
-goog.object.extend(proto, google_protobuf_descriptor_pb);
-goog.exportSymbol('proto.google.api.http', null, global);
-
-/**
- * A tuple of {field number, class constructor} for the extension
- * field named `http`.
- * @type {!jspb.ExtensionFieldInfo}
- */
-proto.google.api.http = new jspb.ExtensionFieldInfo(
- 72295728,
- {http: 0},
- google_api_http_pb.HttpRule,
- /** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
- google_api_http_pb.HttpRule.toObject),
- 0);
-
-google_protobuf_descriptor_pb.MethodOptions.extensionsBinary[72295728] = new jspb.ExtensionFieldBinaryInfo(
- proto.google.api.http,
- jspb.BinaryReader.prototype.readMessage,
- jspb.BinaryWriter.prototype.writeMessage,
- google_api_http_pb.HttpRule.serializeBinaryToWriter,
- google_api_http_pb.HttpRule.deserializeBinaryFromReader,
- false);
-// This registers the extension field with the extended class, so that
-// toObject() will function correctly.
-google_protobuf_descriptor_pb.MethodOptions.extensions[72295728] = proto.google.api.http;
-
-goog.object.extend(exports, proto.google.api);
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.d.ts
deleted file mode 100644
index a2a92a7fc8..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.d.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: google.api
-// file: google/api/annotations.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.js b/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.js
deleted file mode 100644
index a2a92a7fc8..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/annotations_pb_service.js
+++ /dev/null
@@ -1,3 +0,0 @@
-// package: google.api
-// file: google/api/annotations.proto
-
diff --git a/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.d.ts b/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.d.ts
deleted file mode 100644
index 9236d7c318..0000000000
--- a/ecosystem/lava-sdk/src/grpc_web_services/google/api/http_pb.d.ts
+++ /dev/null
@@ -1,136 +0,0 @@
-// package: google.api
-// file: google/api/http.proto
-
-import * as jspb from "google-protobuf";
-
-export class Http extends jspb.Message {
- clearRulesList(): void;
- getRulesList(): Array;
- setRulesList(value: Array): void;
- addRules(value?: HttpRule, index?: number): HttpRule;
-
- getFullyDecodeReservedExpansion(): boolean;
- setFullyDecodeReservedExpansion(value: boolean): void;
-
- serializeBinary(): Uint8Array;
- toObject(includeInstance?: boolean): Http.AsObject;
- static toObject(includeInstance: boolean, msg: Http): Http.AsObject;
- static extensions: {[key: number]: jspb.ExtensionFieldInfo};
- static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo};
- static serializeBinaryToWriter(message: Http, writer: jspb.BinaryWriter): void;
- static deserializeBinary(bytes: Uint8Array): Http;
- static deserializeBinaryFromReader(message: Http, reader: jspb.BinaryReader): Http;
-}
-
-export namespace Http {
- export type AsObject = {
- rulesList: Array